On Mon, Jul 31, 2023 at 11:30:38AM +0000, olivares33561 via users wrote:
>
>
>
>
>Sent from ProtonMail, encrypted email based in Switzerland.
>
>Sent with Proton Mail secure email.
>
>------- Original Message -------
>On Friday, July 28th, 2023 at 1:38 PM, Mike Wright <nobody(a)nospam.hostisimo.com> wrote:
>
...
>>
>> ... OR ...
>>
>> you could do it the easy way:
>>
>>
>> sed -i 's/}/.eps}/' filename
>> _______________________________________________
>
>Thanks to all who replied. This sed command solution worked. The only
>thing other lines which had a "{" also added a *.eps to them but I
>fixed those manually. Not a problem because to change more than 50
>lines and one or two need manual edits. The tradeoff is fine.
>
>Best regards,
>
Just a comment about sed's "-i" (edit In place) option.
Personally I avoid it. Editing scripts are easy to mess up
and with the -i, the original file may be changed in ways
not wanted. Unlike interactive editors, there is no undo.
--
Jon H. LaBadie jonfu(a)jgcomp.com