Surround all lines in a text file with quotes (‘something’)

Use sed?

sed -e "s/\(.*\)/'\1"https://stackoverflow.com/"

Or, as commented below, if the directories might contain apostrophes (nightmare if they do) use this alternate

sed -e "s/"https://stackoverflow.com/"\\\\''/g;s/\(.*\)/'\1"https://stackoverflow.com/"

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)