Search Results

Search: Posts Made By: kewk
1,529
Posted By 116@434
Use this in that case: :up1 ...
Use this in that case:


:up1
s/\("[^,]*\),\(.*"\),/\1!@%\2,/
t up1
:up2
s/\("[^,]*\),\(.*"\)$/\1!@%\2/
t up2



If you notice carefully, one double quotes either ends with comma or...
1,529
Posted By pravin27
How about this, perl -nle...
How about this,
perl -nle 'if(/(.*)(".+?")(.*)/){$vr=$3;printf $1;($repl=$2)=~ s/,/!@%/g; print $repl,$vr;}' inputfile
1,529
Posted By 116@434
Try this sed script :up ...
Try this sed script


:up
s/\("[^,]*\),\(.*"\)/\1!@%\2/
t up
Showing results 1 to 3 of 3

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