Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Comment Stripper script for unix

by Abigail-II (Bishop)
on Jun 14, 2004 at 15:06 UTC ( #366571=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/bin/bash
    
    ...
    
    echo  "# This is not a comment"
    echo  \# and neither is this.
    
  2. or download this
    echo  "
    echo  \
    
  3. or download this
    perl -nle 's/#.*//; print if /\S/'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://366571]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2015-05-06 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (134 votes), past polls