Q&A > regular expressions > How do I strip lines prefixed by a "#" - Answer contributed by tachyon
perl -pi.bak -e 's/^#.*\n//' <file>
There is no Extraterrestrial life
There aren't any suitably capable Extraterrestrials
Interstellar travel is too difficult
We're too uncool / not worth the trouble
What do you mean they haven't visited?
Results (470 votes). Check out past polls.