Tuesday, June 12, 2012

Replace ' in the file with " in a DOS batch file

I need to replace ' in the text file with " 
File structure: 
'','2','ABC','20100305','','','8053','QU','',' 0',' ' 
'','3','XYZ','20100305','','','8053','QU','',' 0',' '




I need to replace ' in the text file with " 
File structure: 
'','2','ABC','20100305','','','8053','QU','',' 0',' ' 
'','3','XYZ','20100305','','','8053','QU','',' 0',' '
On Unix, 

cat file | tr -s \" \' 

0 comments:

Post a Comment

 
Design by BABU | Dedicated to grandfather | welcome to BABU-UNIX-FORUM