YL Narayana forced the electrons to say:
> I have a large number of small files. I need to insert/append the name of
> each file into the body of the file. How can I do it easily?

To append the name of the file, you can try:

for file in *; do echo $file >> $file; done

You can try various things inside the do ... done block - try 
perl -pi -e "perl stuff manipulating $file" $file
to do various perl silliness to the file.

Binand


----------------------------------------------
Find out more about this and other Linux India 
mailing lists at http://lists.linux-india.org/

Reply via email to