sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #95970
Newbie: BASH prg
Hejsa,
Sidder og nørkler med noget BASH/PERL og er totalt newbie. Jeg vil gerne teste om en bestemt fil er tilstede og har:
if [ ! -a input_fil.as ] ; then
echo "Input_fil er ikke tilstede"
exit
fi
Problemet er, at uanset hvad jeg gør, består den testen og mener altså at filen ikke er tilstede. Jeg tror at det har noget med negationen (!) at gøre.
Nogen råd til en newbie??
Best Regards/Med venlig hilsen
Torben Andersen
Production Engineer
Flextronics
Special Business Solutions
Hjortevej 4
DK-7800 Skive
Denmark
+45 96 14 30 00 main
+45 96 14 31 50 direct
+45 96 14 31 44 fax
+45 xx xx xx xx mobile
http://www.flextronics.com
Legal Disclaimer:
The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
Follow ups