Cat command Option
Hi,
I like to view a file by Cat command and want to see it page by page, How can I? Thanks. |
man cat
if there is no option for cat that does that, you can pipe it through less cat [filename] | less quit less with q |
Oskar,
Thanks for your help. It is working but with the cat [file name] | more command. Regards, Fazlur. |
I thought so... cat is one of those programs whose programmers are religious about bloat. (joke)
you can use pipes (|) for alot of stuff. It simply sends the output of the last command to the next one. same works with "ls -l | less" or "locate stuff | grep cool" which would search for "stuff" and filter it so only lines that contain cool and stuff are being printed. |
You can "page" a file directly with less:
Code:
less <filename> Most people I know never use more unless less is missing from the system they're working at -- then they complain bitterly, often cursing 3 or more generations of the installer's family :). Quote:
|
Paging by piping
Thanx :cool: I had a similar problem with flying scrolls - can't wait to try it
|
All times are GMT -5. The time now is 03:11 PM. |