til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as a developer

View project on GitHub

Remove comments

Remove comment lines using sed and a regular expression on a file.

  • #.*$ comment in Perl for example
$ sed -e 's/#.*$//' somescript.pl

References