How to enclose every line in a file in double quotes with sed?

Viewed 23052

This is what I tried: sed -i 's/^.*/"$&"/' myFile.txt

It put a $ at the beginning of every line.

4 Answers
Related