In debugging, I use a lot of 'print' and commenting out it with '#print'. How can I use grep to find the line without '#' before 'print'? # print <- not detect#print <- not detectabc # print <-- not detectprint <- detect
grep to find print not #print
grep
grep '^[^#]*print'Would be print only preceded by non-# characters.