Re: redirecting standard output
- From: "Chirag Shukla" <chiragshuklaindia@xxxxxxxxx>
- Date: 4 May 2006 17:58:41 -0700
Standard output to a file
../your_script_name > your_file_name.log
will send the standard output to the log file (In Windows you do the
same thing too, provided you get a standard output). The ">" sign is
the standard output symbol. With each run of your script, the log file
will be overwritten
../your_script_name >> your_file_name.log
will append the standard output to your log file. That means, your log
file keeps on growing in size.
Learn from other user's comments. Try to read the manual. If you are a
new Linux user, I would ask you not to directly look into "man".
Rather, go to google and learn how to use "man", learn how to use "vi"
etc. From there on, you will get some confidence and will enjoy working
with Linux. In google if you search for "man bash", you will get manual
pages for BASH. Read about Redirection as suggested by other users.
Chirag Shukla
.
- Follow-Ups:
- Re: redirecting standard output
- From: Unruh
- Re: redirecting standard output
- References:
- redirecting standard output
- From: Angel Tsankov
- Re: redirecting standard output
- From: Alan Johnson
- redirecting standard output
- Prev by Date: Re: work flow language
- Next by Date: Re: Fedora 3-what do these items mean?
- Previous by thread: Re: redirecting standard output
- Next by thread: Re: redirecting standard output
- Index(es):
Relevant Pages
|