This is what I tried: sed -i \'s/^.*/\"$&\"/\' myFile.txt
sed -i \'s/^.*/\"$&\"/\' myFile.txt
It put a $ at the beginning of every line.
shorter
sed 's/.*/"&"/'
without spaces
sed 's/ *\(.*\) *$/"\1"/'
skip empty lines
sed '/^ *$/d;s/.*/"&"/'