grep for a text in a line. But if it has a comment only at its beginning then exclude it from the grep
136596
grep lines starting with "1" in Ubuntu
133560
Omit comment replies from the minimum character limit check
104310
How to only substitute lines that match several patterns in sed?
83761
Filtering text through a shell command in Emacs
57165
How do I grep lines ending on a specific expression
119124
grep for string not preceded by another string
103963
What is the opposite of "grep"?
1177
Regular expression to match a line that doesn't contain a word
68318
How can I remove the first line of a text file using bash/sed script?
124497
remove lines that contain a specific text in a file
105573
Filter file by line number
76493
Removing the comments from a string
158360
How can I "grep" patterns across multiple lines?
32721
Removing lines from text file that contain string at beginning and string at end - and keep one
72284
How to strip a listing of all (line and block) comments without leaving white space?
78203
sed: delete all occurrences of a string except  the first one
14398
How to grep-inverse-match and exclude "before" and "after" lines