Search Results

Search: Posts Made By: RudiC
7,355
Posted By RudiC
Wouldn't just this do? awk '{for (i=2; i < NF;...
Wouldn't just this do?
awk '{for (i=2; i < NF; i+=2) gsub (/\;/, "|", $i)} 1' FS=\" OFS=\" file
abc;abc;"abc|abc";cd;"ef|ef";abc
aa;bb;"aa";cc;"ddd|eee";ff
a;"b";"c|d";"e|f;g"...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 08:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy