grep capture group
# matches and returns b
$ echo "abc" | grep -oP "a\K(b)(?=c)"
b
# no match
$ echo "abc" | grep -oP "z\K(b)(?=c)"
# no match
$ echo "abc" | grep -oP "a\K(b)(?=d)"
Also in Shell:
- assign default value in shell script
- mkdir linux
- git remove folder form past all commits
- powershell add element to array
- open a pdf on linux
- git commands
- power toy
- remove frmo staging git
- ufw allow port
- dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
- docker current version
- update yarn
- install ifconfig on ubuntu
- set git origin
- netstat check port
- store result of command in variable bash
- show remote git
- upgrade node version
- get-adcomputer servers only
- java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files
- git get local branches
- how to add font icon in gatsby
- list all users linux
- save android studio home bash_profile