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