|
sed s/^#//
Edit: Whoops, beat me to it, but do note that if you only want to remove leading #'s you will want the ^ in there. Otherwise, something like this:
stuff # comment about that stuff
will be replaced with:
stuff comment about that stuff
which may cause problems by whatever is reading this file.
Last edited by bmintern; 10-24-2006 at 02:03 AM.
|