Saturday, February 25, 2012

How to remove the first character from every line in a text file

Use regular expressions

Find: (.)(.*)
Replace all with: \2 or $2.

I used this to remove the leading space from every line
Find:  (.*)
Replace all with: \1 or $1.