Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: even

27 Apr

Remove Even Lines

This command removes all the even lines from the file given as the argument


cat example.txt|awk 'NR%2==1'
admin Posted in Uncategorized awk, command, even, line, Linux 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
↑