02-01-2006
161,
0
Join Date: Jan 2006
Last Activity: 22 December 2015, 2:19 PM EST
Posts: 161
Thanks Given: 1
Thanked 0 Times in 0 Posts
My data file has 15 characters:
VAR=` wc -c datafile | awk -F" " '{print $1}' `
if [[ $VAR -gt 1 && $VAR -lt 20 ]]
then
echo "great than 1 "
else
echo "less than 1"
fi
When I run this program, I got this message:
> ./if
./if: [[: not found
less than 1
Please tell me what do I do wrong here!