Sed - insert character between tag
Jozsef
jzfk9 at aol.com
Tue Dec 15 20:33:18 UTC 2009
On Tue, 2009-12-15 at 18:22 -0200, Bruno Galindro da Costa wrote:
> Hi all!
>
> I have a text file with this content:
>
> VAR_1="xyz "abcd" fgh"
>
> Using sed, how can I insert a backslash before the two quotes between
> the first and last quote?
>
> e.g.: VAR_1="xyz \"abcd\" fgh"
>
> --
> Att.
> Bruno Galindro da Costa
> bruno.galindro at gmail.com
maybe try this:
perl -p -i -e 's/"abcd"/\"abcd\"/g' *.txt
--
Best,
Jozsef Kurucity | Web & Graphic Designer
+971 50 6783113 | jzfk9 at aol.com
More information about the ubuntu-users
mailing list