Hi
I am trying to make a script that tells me if the file "Hello" appears more than 5 times.
I have the script the following way
I know that the problem is on the var. But I don't how to assigned the value that grep returns.Code:var = ls | grep -c Hello if [var >5];then echo "It appears more than 5" else echo "It appears less than 5 times" fi
Bookmarks