Just wondering how can I add single quotes around fields, so I can import it to mysql without warnings or errors.
I have a csv file with lots of content.
You could try this
awk -F"," -v quote="'" -v OFS="','" '$1=$1 {print quote $0 quote}' file
(-F"," -v OFS="','")
(print quote $0 quote)