Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs

Partner Sites
JustLinux.com
Linux Planet
PHPBuilder
Technology Jobs

Top White Papers

  • The number, complexity, and diversity of cyber threats are soaring. Businesses are increasingly concerned about the risks they face and 91% of organizations...
    Download

  • This online eBook provides insight and advice on how to build an effective disaster recovery strategy in the evolving world of virtual infrastructures,...
    Download

More on LinuxToday


Using nl to Number Lines

May 20, 2011, 09:02 (0 Talkback[s])

[ Thanks to Andrew Weber for this link. ]

"When you create a text file, you can use a special set of delimiters to define a header, a body, and a footer. As you can see in the illustration, you do this by placing the appropriate series of backslashes and colons at the start of each section. Three of each character defines the header, two of each defines the body, and one of each defines the footer. The nl utility allows you to number each of these sections in its own way."

Complete Story

Related Stories: