>
> #!/bin/sh
> if ( -e /tmp/folder ) then
> echo 'folder exists'
> else
> echo 'no such folder'
> endif
Or if you have perl.
perl -e '{print "files exists\n" if (-e "path");}'
a little bit cleaner I really just depends on what you want to
do after the check.
//Matt
--
To unsubscri
) then
echo 'folder exists'
else
echo 'no such folder'
endif
- Original Message -
From: "SBTM" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 23, 1999 11:59 PM
Subject: tcsh shell
> Hello All,
>
> I've got
Hello All,
I've got a quick question. I am in the process of making a shell
script that at login would check if there exists a directory in
temp. My question is, what command do I need with their options in my
shell script?
Thanx.
--Sadiq
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsu