title: Shell parenthesis and quotes
body: <pre><code>find /ABC/ \
      -type f \
      -exec \
      sh -c  ' if [  echo "1" &gt; ${1} ] ; then   if [ "$(cat ${1})" != "1" ]; then [ echo ${1} ]  ; fi ; fi ' _ {} \;
  </code></pre>
  
  <p>My script wanna do this:</p>
  
  <p>find all files in folder. Write 1 to file. Check if "1" is not wrote correctly. print this file's name.</p>
  
  <p>Before. I did this 2 steps. (1) write  (2) read check.
  Now I combine these 2 together. Because I want to check immediately after one file is been written.</p>
  
  <p>But my script has something wrong now.
  Need help.
  Thank you.
  It gives my error: </p>
  
  <pre><code>sh: 1: unknown operand
  </code></pre>
  
  <p>I guess something is mismatch/ Since I am so non-experienced to shell. Need you guys help</p>