On Saturday 05 February 2005 05:06, Michael Walters wrote:
> Could someone please tell me where to go in the Linux Command Summary to
> find out how to do this?

ls | less

the '|', or pipe, character sends the output of whatever is the left of it as 
the input to whatever is on the right side of it. "less" is a command that 
provides paging. so `ls | less` gives you a listing with paging. this is 
superior to implementing paging in ls itself since less allows paging with 
ANY command in a consistent manner and it keeps the code for ls simpler (and 
therefore less buggy).

there are alternatives to less, such a more, for instance. the UNIX command 
line is highly componentized in this manner, and its up to the user to hook 
the components together with |, <, >, etc...

-- 
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

Attachment: pgpD5WhncIZCW.pgp
Description: PGP signature

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to