So for example, if I used the command:
grep -r "search" *
could I use a command to save the resulting output to a .txt file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This kind of redirection is not specific to the command you are running, by the way. It is a feature of the command shell. The standard shell in linux is called bash.
man bashshould give you more information than you probably want, but look for the section called REDIRECTION for a comprehensive discussion of these features.