<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.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug