Hello all. Is there a way to redirect output to more than one file at a time?
I have a method1() that writes to a logfile. In the method cksums are done on files by doing a
"for i in `ls`; do
cksum $i > $LOGFILE
done
"
In the logfile I want to show the cksums under each directory like ths:
Logfile:
##########
cksum on dir 1
##########
12323239 file1
##########
cksum on dir 2
##########
12323239 file1
At the same time I would like to keep a list of all the cksum in another file like this:
CKSUMLOG:
12323239 file1
12323239 file1
I dont want to cat or create a lot of temporary files. Is there a way to do this with some I/O commands?
Thank you for your time.