Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: first

07 Jul

Get the First Line of Command Output in Shell

Get just the first line of the output of a command…


<command>|head -n1

ls -1|head -n1
admin Posted in Command Line, Linux cli, command, first, line, Linux, output Leave a comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑