Displaying file contents with cat
Instead of using more to display files, you can use cat (as in "concatenate"), which displays files but does not pause so you can read the information. Instead, it displays the file or files—which whizzzz by onscreen—and leaves you looking at the last several lines of the file (Code Listing 1.8).
The cat command also lets you redirect one or more files, offering a function that some versions of more do not.
To display file contents with cat:
1. | cat newest.programs |
Get Unix: Visual QuickStart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.