trying to just append a closing paragraph tag "</p>" to the end of every line in a file using:
perl -pe s/$/\<\/p\>/ < text.txt > temp.txt
running this gives me: Substitution replacement not terminated at -e line 1.
if i try:
perl -pe 's/$/\<\/p\>/' < text.txt > temp.txt
i get: Can't find string terminator "'" anywhere before EOF at -e line 1.
any ideas?
perl -pe s/$/\<\/p\>/ < text.txt > temp.txt
running this gives me: Substitution replacement not terminated at -e line 1.
if i try:
perl -pe 's/$/\<\/p\>/' < text.txt > temp.txt
i get: Can't find string terminator "'" anywhere before EOF at -e line 1.
any ideas?
Last edited: