To underscore what choroba said:
$ ./myscript.pl > somefile.txt # create new/overwrite file # ./myscript.pl >> somefile.txt # append to a file # ./myscript.pl 2>&1 > somefile.txt # stdout and stderr to a file # ./myscript.pl | less # stdout to stdin of a program
In reply to Re^5: save output of program in another file
by blue_cowdawg
in thread save output of program in another file
by bingalee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |