Re: Simple frage zu shell-script

From: Simon 'corecode' Schubert <corecode(at)fs.ei.tum.de>
Date: Mon, 15 Sep 2003 14:28:03 +0200 (CEST)

Lately Schonder, Matthias told:
> unter der bash krieg ich mit dem -e raus ob ne datei existiert also auf
> die
> art
>
> if [ -e test ]
then

> echo Ok
> else
> echo schlecht
> fi
>
> ... wie krieg ich unter sh raus ob eine Datei vorhanden ist?

das hat irgendwie wenig mit bash/sh zu tun, mehr mit [(1)==test(1)

und, siehe da, es ist das gleiche:
     -e file True if file exists (regardless of type).

gruesse
  simon

-- 
/"\   http://corecode.ath.cx/#donate
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News
To Unsubscribe: send mail to majordomo.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 15 Sep 2003 - 14:28:34 CEST

search this site