a little problem... 
Author Message
 a little problem...

Hi,

in some files, i have lines with one or more double quote ", and I want
to know how I can replace it with backslash double quote \"  with a
solution awk.....

Thanks....

Nico...



Fri, 03 Jan 2003 03:00:00 GMT  
 a little problem...

Quote:

> Hi,

> in some files, i have lines with one or more double quote ", and I want
> to know how I can replace it with backslash double quote \"  with a
> solution awk.....

> Thanks....

> Nico...

Howabout:

gawk '{gsub("\"","\\\"");print}'

or in sed (which is good for this sort of thing):

sed 's/"/\\"/g'

Tristan.



Fri, 03 Jan 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Annoying Little Problem

2. Two little problems

3. A little problem

4. three little problems

5. Little Problem with Script

6. Little problem

7. Help with several little problems

8. A little problem with Leonardo and Max Plus

9. A little problem...easy to solve...

10. A little problem...easy to solve...

11. WRITING little problem

12. Little problem with the "+" operator

 

 
Powered by phpBB® Forum Software