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.

      Start asking to get answers

      Find the answer to your question by asking.

      Ask question

      Explore related questions

      See similar questions with these tags.