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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirect of the --help(commands) to a file 2

Status
Not open for further replies.

desanti

Programmer
Jul 9, 2004
51
US
HI;I have been trying to redirect the output of a command to a file; i.e.(cut --help) will display the command structure.I would like to capture tne output of --help to a file.Can it be done?I am using KSH with a dos like command line.Some of the --help output is long so i need a copy to peruse.thank you.
 
Hi:

I'm not familiar with the --help utility. I use the man utilty which is available with most unix systems. When i want to send the output of man to a file I do this:

man cut|col -b > cut.txt

The col stuff removes the special formatting characters. Perhaps that will work with --help.

Regards,

Ed
 
cut --help > filename
or pipe it to a pager so it won't scroll off the screen:
cut --help | less
Typing h inside less will show you how to navigate through the listing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top