Posted By

evertwh on 04/13/10


Tagged


Versions (?)

loop over files


 / Published in: Bash
 

  1. for f in `find . -name flags.make`
  2. do
  3. echo $f
  4. sed -i -e '1,$s/C_FLAGS =/C_FLAGS = -I\/opt\/local\/include\//' $f
  5. done

Report this snippet  

You need to login to post a comment.