Currently I only have this solution for a single file:
perl -pe '$_.="\n"' file1.txt > file1.newIt's untested but should read file1.txt and print the modified version into file1.new.
I have no idea, how to perform this with multiple files in one (simple) command.
You could still use a shell for loop to perform this upon several files...
# bash for FILE in *.txt; do perl -pe '$_.="\n"' $FILE > $FILE.new; done
In reply to Re^3: IO::Handles ... any good?
by linuxer
in thread IO::Handles ... any good?
by blowupp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |