Examples of displaying files with the cat command

Examples of displaying files with the cat command

To display a file:

   cat README

This displays the contents of the file README. If the file contains more lines than can be displayed on the screen at once it will scroll by; use a pager instead.


To display line numbers:

   cat -b myprog.c

This displays the contents of myprog.c and numbers the lines. Blank lines are not numbered.


[Home] [Search] [Index] This site maintained by unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:30 am and is maintained by webmaster@math.rutgers.edu.
For questions regarding courses and/or special permission, please contact mclausen@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2012 Rutgers, The State University of New Jersey. All rights reserved.