On 7/21/2016 8:26 AM, bruce wrote:
If you swap out the apostrophes with quotation marks it should work - Bash is what I think is getting in your way. On Fedora 23 I have the following in a text file called test.txt: The 'test' case for changing foo('txt') to foo("txt") without changing bar('txt') to bar("txt") example. I used the following sed command: sed -e "s/foo('txt')/foo(\"txt\")/g" test.txt This is the output: The 'test' case for changing foo("txt") to foo("txt") without changing bar('txt') to bar("txt") example. Tom |
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org