I want to add a " character to the begin of every line in a text file. Is there any simple solution?
perl -p -e 's/^/"/' myfile should do it!
perl -p -e 's/^/"/' myfile
$ cat myfile 0 1 2 3 4 5 6 7 8 9 10 $ perl -p -e 's/^/"/' myfile "0 "1 "2 "3 "4 "5 "6 "7 "8 "9 "10
2.1m questions
2.1m answers
60 comments
57.0k users