Appending a string to all files in a directory

Hi,

I will have to append a common string at the beginning of each and every line to all files in the same directory. How do i do this?

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