Skip to main content
1 of 5
ABC
  • 229
  • 1
  • 3
  • 7

Find result used in if statement

How can I use the result of a find command in an if statement to compare with true or false ? Something like that:

    if [ `find . -name test.txt -size 156c` -eq "true" ]; then echo Found
ABC
  • 229
  • 1
  • 3
  • 7