next up previous contents
Next: Naming Files Up: Basic File Commands Previous: Basic File Commands

Displaying the Contents of a Text Files

The contents of a text file can be viewed one page at a time by using the more command:

more <textfilename>

A page will be displayed at your screen, and more will then pause with the message '-More-' followed by a percent sign and a number. The number represents the percentage of the file that you have already seen, i.e. '-More-(5%)' means that you have 95% more text to view. Commands can be entered while more is paused. Some of the commands to control more are as follows:

 
(n)<CR>    		 Scroll forward n lines at a time. Default is one line.

<spacebar> Advance to next page of the file.

(n) b Page back n pages. Default is one page.

q Quit showing the document.

Another way of displaying text files is with the cat command:

cat <textfilename>[<textfilename>..]

The name 'cat' comes from 'concatenate', and that is exactly what cat does when supplied with multiple text files. When used with only one file argument, the cat command concatenates that file with a null file, then sends the file to stdout, the terminal screen. In English, this displays the contents of the file on your screen. Displaying files with cat has the disadvantage of not stopping the scroll at every screenful, you must use <ctrl-s,ctrl-q> to stop and start the output respectively. To join two or more files into a single file, issue:

cat <filename1> <filename2> [<filename3>..] tex2html_wrap_inline1106 <outputfilename>



Larry Latour
Fri Sep 12 08:12:59 EDT 1997