- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] if [[ -e *.TXT ]] ; then
- From: Jeff Waugh <jdub@xxxxxxxxxxx>
- Date: Mon Jul 2 19:03:01 2001
- User-agent: Mutt/1.3.18i
<quote who="Russell Davies">
> ; I want to check to see if there are any files to move (otherwise I get an
> ; error message generated if there are none)
> ; Then move the relevant files
>
> yes, I thought as much. That's pointless, just move them. If there's
> nothing there, you won't move anything.
>
> $ mv *.TXT /tmp
And if you don't like the error message:
mv *.TXT /tmp 2> /dev/null
- Jeff
--
You know a French woman is faking it when she screams, "I would like
the table near the window please!"