Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] if [[ -e *.TXT ]] ; then


; 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
; 
; if [[ -e *.TXT ]] ; then
; mv *.TXT /tmp
; fi

yes, I thought as much. That's pointless, just move them. If there's
nothing there, you won't move anything.

$ mv *.TXT /tmp

r.