The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 06-04-2008
mrmod mrmod is offline
Registered User
  
 

Join Date: May 2008
Posts: 2
you could put the lines in a file like 'mylittlelines' then for the directory where all these files are

for file in *
do
cat mylittlelines >> $file
done

or use find with something like
for file in find . -name <pattern>
do
cat mylittlelines >> $file
done