I am trying to execute the below command in Linux buy it does not give me proper result. I'm executing this on redhat linux7.
If [[ find ABCD.txt -mtime 1| wc -1 -eq 1 && test find cded.txt -mtime 1 | wc -1 -eq 1 ]]
Then
Some cond
Else
Some cond
Fi
Note : when I echo the find command it gives me result one but when I compare it with number one .the if condition is failed .I get conditional binary operator expected ,syntax error near TXT file . please help me in executing this condition completely.im just how very few command in Linux .new to linux
Aucun commentaire:
Enregistrer un commentaire