blob: e40da26f90db7b624ea15a17f0e70c6bbbb776e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#this is a file with comments#another line# how do I grep for uncoimmented lines?try grep -v '^#' <file># that worksbut grep -nv '^#' <file> is even better# another comment#preceeding line was whitespacebut this is real.And now we can exclude whitespace or empty lines:grep -nvE '^#|^ |^$' grepcomments#rox
|