Here is the piece of code that gives the problem:
if [ " ls -l ~/sysbackups | wc -l " -gt 5]
What to do?
You have to use :
if [ `ls -l ~/sysbackups | wc -l` -gt 5 ];then echo XXXXX fi;
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
asked
26 days ago
viewed
37 times
active