What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-28 04:13:02
grep print only capture group
## Short answer: $ grep -oP 'stuff before your match\Kyour match(?=stuff after your match)' ## Explanation: # GNU grep has the -P option for perl-style regexes, and the -o option to print # only what matches the pattern. # These can be combined by usin... Add solution -
-
Shell/Bash 2021-08-28 00:48:01
git delete multiple branch local
// git remove multiple branch // here pattern refers to few characters of branch name that is common between multiple branches // delete branch locally git branch | grep "pattern" | xargs git branch -d // delete local branch that is unmerged g... Add solution -
-
Shell/Bash 2021-08-27 23:18:01
how to stop tomcat server in macos
$ netstat -an | grep 8080 Add solution