Useful CLI

Discussion in 'all things UNIX' started by vasa1, Jan 12, 2012.

Thread Status:
Not open for further replies.
  1. vasa1

    vasa1 Registered Member

    Joined:
    May 1, 2010
    Posts:
    4,417
    I searched the last ten pages but didn't see anything like that.
    Code:
    egrep -v '#|^ *$' [i]path/filename[/i]
    It outputs lines that are not commented out with "#" or that are blank.

    Useful to get the gist of heavily commented files like my Privoxy config file.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.