Created
April 10, 2018 07:40
-
-
Save grantpullen/af6a24d1e06d5c1b60ac9b7e03a4b3c1 to your computer and use it in GitHub Desktop.
file search VIM and bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// number of times that pattern matches in file with VIM | |
:%s/pattern//gn | |
// number of LINES that pattern matches in file with VIM | |
:%s/pattern//n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment