<statement> unless -e '/dir/path/file';

-or-

if ( not -e '/dir/path/file' ) {
  <statements>
}

-----Original Message-----
From: Tony [mailto:[EMAIL PROTECTED]] 
Sent: 08 September 2002 10:24
To: [EMAIL PROTECTED]
Subject: file exists statement


I keeps writing this out

if (-e "/dir/path/file"){}else{
#execute
}

To execute a statement when a file doesn't exist.

Someone want to shorten this so I don't have to use an else statement.

Thanks,
Tony


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to