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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -