How To Save The Output Of A Script In A File

RegisterLogin
How To Save The Output Of A Script In A File
Post Description: how to save the output of a script in a file i am trying the shell scripts but im a little confused on how to do this, maybe you guys can help me
Tags: how, to, save, the, output, of, a, script, in, a, file
This Post Was Posted On Apr 18, 2010 By Gene #3379
hi, im starting my website with a linux server i got from webune.

i am trying the shell scripts but im a little confused on how to do this, maybe you guys can help me

this is what i want to do:

i have a scrip1 and i want the contents of script2 to be processed by script1, and then save the output to script3 how can i do this
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
webune
#3790 1
you can use this command:

SHELL CODE:
script1 < script2 | script3


as you can see here we use the redirection operator and then we r using a pipe to save the output to script3

hope that helps.

let me know if it works
Apr 18, 2010 Reply Report abuse
©2011 Webune Forums - Wed Dec 21, 2011 12:09 am
Powered by: Webune Forums V3