Search Results

Search: Posts Made By: RudiC
11,463
Posted By RudiC
Might be double quoting the leading zeroes number...
Might be double quoting the leading zeroes number fields would help?
11,463
Posted By RudiC
What if any one of the fields already is double...
What if any one of the fields already is double quoted?cat file
A|B|C|D
A|B|C|D
A|"B"|C|"D"
A|B|C|D
awk -F'|' -v OFS='","' 'NF{$1 = $1; $0 = "\"" $0 "\""}1' file
"A","B","C","D"...
Showing results 1 to 2 of 2

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