1

I am going through ,this answer here Understanding the -exec option of `find`

I am not able to understand, how below piece of code works

sh -c 'echo "hello $1" ' somestring works

How does that work,if i remove somestring ,it doesn't even work..

I tried searching with keywords like sh -c examples,but its not yielding any results

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255

0 Answers0