View a file with line numbers

Contributor Icon Contributed by qmchenry Date Icon September 4, 2003  
Tag Icon Tagged: UNIX

Using the cat command in UNIX, a file can be displayed with the line number of each line preceding the line


cat -n filename

Previous recipe | Next recipe |
 

Viewing 1 Comment

 
close Reblog this comment
blog comments powered by Disqus