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 04-28-2008
n_rajitr n_rajitr is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 5
Wont this help?

Let your string be abcde
cd <your-directory>
for file in *
do
sed "s/^/abcde/g" $file > ${file}.1;mv ${file}.1 $file
done