[Linux/vi] multi search string

[1stString] : First string to find.
[2ndString] : Second string to find

Or Search ( Use "\|" )
/[1stString]\|[2ndString]

And Search (Use ".*" )
/[1stString].*[2ndString]/

Reference:
http://www.linuxquestions.org/questions/linux-software-2/searching-multiple-patterns-through-vi-editor-725155/

Comments

Popular posts from this blog

e1000e 0000:00:1f.6 eno1: Detected Hardware Unit Hang

[WordPress] Change https redirect in DB.

sanitize on in CMakeLists.txt