dreport in script file
Kenneth Brody
kenbrody at bestweb.net
Thu Sep 30 08:30:25 PDT 2004
Butch Ammon wrote:
[...]
> day=`date +%a`
> if [ "$day" -eq Mon ]
[...]
"-eq" is a numeric compare. The Bourne shell will compare two non-numeric
values here as "true".
You want:
if [ "$day" = Mon ]
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
More information about the Filepro-list
mailing list