[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash Scripting
On Tue, Apr 04, 2000 at 10:48:09PM -0500, Jason Hackney was only
escaped alone to tell thee:
#!/bin/sh
# First separate all command with a semicolon.
# And get rid of test, a binary operator.
# bedlam
clear ;
if [ -f goofy ] ; then
echo FILE EXISTS, ERASE IT ;
rm .cron.var ;
else
echo FILE DOES NOT EXIST ;
echo CREATE THE FILE ;
touch .cron.var ;
fi
That it?
--
bedlam@concentric.net | the one true pwd(5)