Neat.
And you can shorten that some:
perl -pi.bak -0777e's{ ^ \n \z }{}xms' *.txt
Makeshifts last the longest.
In reply to Re: Easy if you don't mind slurping.
by Aristotle
in thread truncate only a last blank line
by hj4jc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |