I want to put each line within quotation marks, such as:
abcdefg hijklmn opqrst
convert to:
\"abcdefg\" \"hijklmn\" \"opqrs
I think the sed and awk are the best solution but if you want to use just shell here is small script for you.
#!/bin/bash chr="\"" file="file.txt" cp $file $file."_backup" while read -r line do echo "${chr}$line${chr}" done <$file > newfile mv newfile $file