No such thing as a small change | |
PerlMonks |
Re: Replace first blank line in a text file with headers.by shadowsong (Pilgrim) |
on Mar 24, 2016 at 15:29 UTC ( [id://1158725]=note: print w/replies, xml ) | Need Help?? |
If you find that the only place your text file could possibly have an empty line and you don't mind changing the file in place, feel free to use this one-liner (where filename.txt is the name of your text file):
Cheers,
In Section
Seekers of Perl Wisdom
|
|