Search Results

Search: Posts Made By: melannie
17,779
Posted By melannie
It does not work with sed -e "s/^/'/" -e "s/ /'...
It does not work with sed -e "s/^/'/" -e "s/ /' '/g" -e 's/$/'"'"'/' input.csv > output.csv The output looks something like this.

'1 abc 2
'

'2 def 4
'

...
17,779
Posted By melannie
adding quotes around each column in a csv file
I saved the csv file in a comma delimited format.
Sample input
input.csv
1 abc 2
2 def 4
3 ghi 6
4 jkl 8
5 mno 10
output.csv should look like this with single quotes around each field
'1'...
Showing results 1 to 2 of 2

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