Re: redirecting standard output



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

.



Relevant Pages

  • Re: redirecting standard output
    ... provided you get a standard output). ... With each run of your script, the log file ... I think he is asking how the shell script itself can redirect its own ... NOt hoow you can redirect its standard output to a file. ...
    (comp.os.linux.misc)
  • Re: redirecting standard output
    ... provided you get a standard output). ... With each run of your script, the log file ... I think he is asking how the shell script itself can redirect its own ... NOt hoow you can redirect its standard output to a file. ...
    (comp.os.linux.misc)
  • Re: redirecting standard output
    ... provided you get a standard output). ... With each run of your script, the log file ... I think he is asking how the shell script itself can redirect its own ... NOt hoow you can redirect its standard output to a file. ...
    (comp.os.linux.misc)
  • Re: redirecting standard output
    ... provided you get a standard output). ... With each run of your script, the log file ... I think he is asking how the shell script itself can redirect its own ... NOt hoow you can redirect its standard output to a file. ...
    (comp.os.linux.misc)
  • Re: [man bash] Redirection: special files.
    ... > This is an attempt to understand the bash manpage. ... you where duplicating the fd "fd", i.e. the fd returned by open ... handle it bu only for redirections, ... > directs only the standard output to file dirlist, ...
    (comp.unix.shell)