Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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;
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.