[ABE.pm] Append a line at bottom of file
Phil R Lawrence
phil at five-lawrences.com
Thu Mar 11 13:52:39 CST 2004
> * Mordechai_Pniel at contractor.amat.com [2004-03-11T12:49:59]
>
>>I need a perl script : to append a line at the bottom of every file *.sql.
>>This line should contain the string "EXIT".
>>Only if this line doesn't exist as the bottom line of the files.
>>Does anyone have any sample?
I tried using eof() in a one-liner (i.e with -pi -e), but did strange
things. Then I saw in the Camel that eof "is not useful in an
interactive context" (for reasons that are beyond me).
So I guess you're stuck with boring temp files and such.
prl
More information about the ABE-pm
mailing list