title: How to use find and echo to append a file
body: <p>Hi this is my filesystem so far, and what I would like to achieve is to append "Hello world" in every text file that has 1 within its name. </p>
  
  <p>root@s11:~/Test# ls -R</p>
  
  <p>.:
  A  B</p>
  
  <p>./A:
  A1  A2</p>
  
  <p>./B:
  B1  B2</p>
  
  <p>What I did so far is</p>
  
  <p>root@s11:~/Test# find  . -iname "*1" -exec echo "Hello World" >>  {} \;</p>
  
  <p>root@s11:~/Test# find  . -iname "*1" -exec file {} \;</p>
  
  <p>./A/A1:         empty file</p>
  
  <p>./B/B1:         empty file</p>
  
  <p>My machine is Solaris 11.3</p>