<quote who="Jan Schmidt">

> <quote who="[EMAIL PROTECTED]">
> 
> > your questioin was nowhere near as dumb as mine,
> > talking about dumb questions, what do I use to replace 'IF EXIST" in a BAT
> > file's:
> > 
> > IF EXIST something DEL something
> 
> in sh: 
> 
> if [ -x "$FILE" ]; then
>   rm $FILE
> fi
> 

if [ -e "$FILE" ]; then even... -x is "file exists and is executable"

see 'man test' for the full set of tests available inside '[]' brackets.

J.
-- 
Jan Schmidt                                  [EMAIL PROTECTED]

Homer: "No TV and No Beer make Homer something something"
Marge: "Go Crazy?"
Homer: "Don't mind if I do! aaaarrrarrgghar!"
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to