SLUG Mailing List Archives
Re: [SLUG] my next stupid question
- 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`
> cat $i >> newfilename
> mv $i /tmp
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.
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.
For a list of points detailing how technology has failed to improve our
lives, please press 3.