Save 10 lines from Help into txt file
I need to save first 10 lines from manual for command man to txt file.
First step I have command man man but what to do next?
Thanks for help.
11 Answer
Pipes and head will do what you need:
man man | head -10 > file.txthead -n where n = number of lines you want