- To: Slug <slug@xxxxxxxxxxx>
- Subject: Re: [SLUG] my next stupid question
- From: Jeff Waugh <jdub@xxxxxxxxxxx>
- Date: Tue Jul 3 14:34:02 2001
- User-agent: Mutt/1.3.18i
<quote who="Alister Waller">
> for i in `ls *.TXT`
> do
> cat $i >> newfilename
> mv $i /tmp
> done
Why cat? cp $i newfilename would do pretty well.
> Now, if there are no *.TXT files then I get an error sent back to the owner
> of the crontab file.
"2> /dev/null"
If you're not interested in the stderr output of the loop, put the entire
loop in parentheses and direct stderr to /dev/null from it.
- Jeff
--
For a list of points detailing how technology has failed to improve our
lives, please press 3.