Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: numbering

07 Jul

Add Line Numbers

Use this command to add line numbers to a text file…


sed = filename.txt | sed 'N;s/\n/\t/' > filename_number.txt
admin Posted in Command Line, Linux command, line, Linux, number, numbering, sed, shellfu 3 Comments

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
↑