in reply to How to substitute all tabs only in a specific field
Here is another try for the input file :perl -pe 's/^([^"]+)"(.+)"/($x = $2) =~ y{\t}{,}s;"$1\"$x\""/e'
The expected result :a b c d "x1 x2" c d e "x2" e f h "x3 x4 x5 x6"
Thanks again to all of you for your useful help.a b c d "x1,x2" c d e "x2" e f h "x3,x4 x5,x6"
|
|---|