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,152
    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.
     
Loading...
Thread Status:
Not open for further replies.