Here are some handy sed one-liners I’ve come across recently. Maybe someone else will find them handy.
Wrap each line with quotes (quotation marks) – version 1:
sed 's/^[^$]*$/"&"/'
Wrap each line with quotes (quotation marks) – version 2:
sed 's/.*/"&"/'
Replace space with escaped space:
sed 's/ /\\ /g'






