Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie - simple question

Status
Not open for further replies.

bergis

Technical User
Jun 21, 2001
42
GB
Hi,
as I am setting up linux (rh7.1) for the first time, I am trying out a lot of things for the first time, just to see what happens :), and I have one q.: Is there any way of printing out results of commands I run in the terminal window, some command I can 'attach' to the main command that prints out the result or something like that?

regards
Kjell
 
ls -l | lpr

the "|" *pipes* the result of "ls -l" to lpr which prints stuff. it normally does a bad job of printing ascii tho so if you can run

ls -l | a2ps

which will make it look pretty. use "man a2ps" to look for further options on output style.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top