regex - How to grep lines that start with double forward slash in Linux command line? -
how grep lines in file start double forward slash linux command line? double forward slashes may have spaces before it, spaces before , no other types of characters.
e.g.
shell_prompt: ls shell_prompt: grep .....? file_name
sorry being unobservant, didn't notice existed before // characters other space. problem solved. award guy answered first.
use regular expressions:
grep -e '^ *//'
Comments
Post a Comment