in reply to Re: Adding '#' in the beginning of each line
in thread Adding '#' in the beginning of each line

Yup. Or:

perl -pe "print '#'"