D
Deleted member 49549
Guest
hi all. Looking for some perl experts. I have the following script that inserts the file name in the first line of a text file. However, it doesn't work if there are any spaces in the filename. Any ideas?
perl -i -pe 'BEGIN{undef $/;} s/^/$ARGV\n/' `find . -name '*.txt'`
perl -i -pe 'BEGIN{undef $/;} s/^/$ARGV\n/' `find . -name '*.txt'`