Search Results

Search: Posts Made By: Uttam Maji
9,397
Posted By rangarasan
use nawk instead of awk if you are in solaris. ...
use nawk instead of awk if you are in solaris.

Cheers,
Ranga :)
9,397
Posted By RudiC
@msabhi: solutions working fine, except that you...
@msabhi: solutions working fine, except that you need to start first soln's for loop at i=2 to produce what the OP requested.
9,397
Posted By msabhi
awk -F\" 'BEGIN{OFS=FS;}...
awk -F\" 'BEGIN{OFS=FS;} {for(i=1;i<=NF;i=i+2){gsub(/,/,"|",$i);} print $0;}' input_file


Or if you want "~" as field seperator

awk -F\" 'BEGIN{OFS=FS;}...
Showing results 1 to 3 of 3

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