Quote:
Originally Posted by hashbangbinbash
I have a similar question about the correct syntax for this scriptlet:
Code:
#!/bin/bash
n=( date | awk '{print $3 }')
if ($n =< 7)
echo "do the thing"
done.
can't quite find the answer through google.
|
How is this similar to the OP asking about ping??!! (It's better to put into your own thread)
What is the question?
One thing I see is the assignment of the result of a command. It needs to be one of 2 forms:
n=$(command)
n=`command`
(those are back-tics, not single quotes)