0

Here is the piece of code that gives the problem:

if [ " ls -l ~/sysbackups | wc -l " -gt 5]

What to do?

1 Answer 1

2

You have to use :

if [ `ls -l  ~/sysbackups | wc -l` -gt 5 ];then
    echo XXXXX
fi;

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .