The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 11-17-2008
elbrand elbrand is offline
Registered User
  
 

Join Date: Apr 2008
Location: Wolfenbuettel/Germany
Posts: 12
appending a line to the end of several hundred files

find /tmp -name publish.php | while read a ; do echo "<? include('path/to/file.php'); ?>" >> ${a} ; done