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@xxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue