I ve got some configuration files with hundreds of lines of data each.
I d like to begin each line (after the carriage return) with a pound sign ( # ) unless it s already beginning with a pound sign. I don t want to do a find+replace because I ve got other commented parts of the file that aren t the beginning of a line.
So for example, this:
Some data #some comment
Some more data #some other comment
Even more data
#some line comment
would turn into:
#Some data #some comment
#Some more data #some other comment
#Even more data
#some line comment