Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 301 Bytes

remove_comments.md

File metadata and controls

13 lines (8 loc) · 301 Bytes

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