man <cmd> >> cmd.txt


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers man <cmd> >> cmd.txt
# 1  
Old 06-15-2005
man <cmd> >> cmd.txt

I've noticed most of my postings here are because of syntax errors.
So I want to begin compiling a large txt file that contains all the "man <cmd>" of the commands I most have problems with. I ran a "man nawk >> nawk.txt" but it included a header/footer on each "page". Anyone know how I'd be able to retrieve a "man" but in an easier-to-read format (after redirecting it into a txt file). This way I won't run into as many syntax errors as I do now.
# 2  
Old 06-15-2005
Why do you want to re-invent the wheel again ?

A quick google search on 'unix man page' will give you many a site which post the man pages of unix.

The first result of the google query gave me this URL.

http://www.rt.com/man/

Check it out.

It will help you.

Vino
# 3  
Old 06-15-2005
oh

Oh, thank you.
I just started coding shell scripts about a week and a half ago.
So I'm unaware of some of the readily available resources.

I guess -- I was worried that maybe each unix machine has its own version of the "unix manual" that is tailored to the flavor of the shells on the machine.
# 4  
Old 06-18-2005
I also don't understand what the point of appending loads of man pages into a text file is?!

Surely scanning through a huge file for the command your interested in is far slower than just running "man mycommand" anyway??

The man page itself has nothing to do with the shell (except for the manual pages for shells, of course Smilie). They will vary across Unix flavours, however, in both layout and content, as most commands differ slightly (or hugely) in terms of syntax and functionality across flavours.

Cheers
ZB
# 5  
Old 06-18-2005
For what its worth, try man man for a man page on using man!
# 6  
Old 12-01-2005
try this command

man cmd |col -b > cmd.txt

it works in my solaris platform.
# 7  
Old 12-02-2005
You might also run catman (on solaris anyway Smilie ) Make sure you have lots of time and some space on the disk for the extra files. Then you can run apropos [keyword] and all the relevent man page subject lines will be displayed. It'll help you when you're not sure of the command. Of course if it's too generic a word, you'll get a whole lot of output Smilie

Carl
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with cmd while using ps

Hi i am new to shell scripting and any help is really appreciated. my requirement is in, ps -e -o pid,uname,cmd how can i split and take only the cmd part from it. I tried awk but the issue is when the cmd is returning a lengthy command which itself has some spaces it is truncating the... (7 Replies)
Discussion started by: Jojo90
7 Replies

2. UNIX Desktop Questions & Answers

Sftp cmd

What is the cmd line to connect sftp, specifing the port number and the shh key file. When I use the below cmd format, it gives the msg :node name or service name not known, but I know the connection works, because the automated sftp script works fine and I can log into the remote server ... (3 Replies)
Discussion started by: ITDev01
3 Replies

3. UNIX for Dummies Questions & Answers

Help with the find cmd

Hello, I'm having a trouble with the find cmd. I would like to find all the java versions on my systems. I have solaris 9 & 10 RHEL and SUSIE. java -version doesn't give all the versions on the server. So I am trying to use the find command to find them all find / -name java I would... (7 Replies)
Discussion started by: bitlord
7 Replies

4. Shell Programming and Scripting

Perl open(CMD, "cmd |"); buffering problem..

Hello, There's a third-party application's command that shows the application's status like "tail -f verybusy.log". When use the command, the output comes every 1-sec. but when it goes in a script below the output comes every 8-sec...What is the problem and how can I fix it? open(CMD,... (2 Replies)
Discussion started by: Shawn, Lee
2 Replies

5. Shell Programming and Scripting

Help with delete cmd

Is there any command to know ,how many files are deleted when rm *. cmd was excuted. I worte script which runs for 1 hours regularly and it is used to delete the .exe files but i need to know how many exe files are deleted regularly. Please let me know the cmd ---------- Post updated at... (3 Replies)
Discussion started by: kkalyan
3 Replies

6. Shell Programming and Scripting

Unix cmd prompt how to get old cmd run?

Hi, I am using SunOS I want to serch my previous command from unix prompt (like on AIX we can search by ESC -k) how to get in SunOs urgent help require. (10 Replies)
Discussion started by: RahulJoshi
10 Replies

7. AIX

Filesystems cmd

hi is that any command to find out which filesystems occupying more process in cpu utilisation (4 Replies)
Discussion started by: senmak
4 Replies

8. UNIX for Dummies Questions & Answers

mv cmd

Hi All, How can I move only files to another destination using mv cmd in hp-ux. (2 Replies)
Discussion started by: mhbd
2 Replies

9. Programming

open cmd

if((LogFile=open(TempStr,O_CREAT|O_WRONLY|O_APPEND,0666))==-1) return(1); could someone explain me what the open() does here (2 Replies)
Discussion started by: bankpro
2 Replies

10. Shell Programming and Scripting

unix cmd

Hi i want a shell script to get the date which is mentioned in the first line of a file. file format is: #EOD rates on 20050228 at 22:06:37 -------- -------- ------- first line length is always fixed. (4 Replies)
Discussion started by: sasi
4 Replies
Login or Register to Ask a Question