Linux Today: Linux News On Internet Time.

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: