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
1.4m articles
1.4m replys
5 comments
57.0k users