I wanna save this command to another text:
awk ‘{print $2}’
it extract’s from text.
now i wanna save output too another text.
thanks
I wanna save this command to another text: awk ‘{print $2}’ it extract’s from
Share
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 will redirectSTDOUTto a file. If file not exists, it will create it. If file exists it will clear out (in effect) the content and will write new data to it>>=> This means same as above but if file exists, this will append new data to it.Eg:
Alternatively you can use the command
teefor redirection. The commandteewill redirectSTDOUTto a specified file as well as the terminal screenFor more about shell redirection goto following link:
http://www.techtrunch.com/scripting/redirections-and-file-descriptors