sed repeat pattern
For using match in sed replacement, just border it with '\(' and '\)':
echo Before123 | sed 's/Before\([0-9]*\)/\1After/g'
123After # number is matched withtin '\( \)' and replaced in '\1'
Example with 2 match replacements
echo a_b | sed 's/\(^.*\)_\(.*$\)/first is \1 and \2 is after/g'
Also in C++:
- prettier whole project
- powershell set wsl 2
- extract tar.gz linux command line
- how to create a mongo db database digital ocean nginx
- what is digital marketing
- git push to all remotes
- bash delete a range of lines from a file
- powershell open cmd
- uploading a folder to github
- install mpfr ubuntu
- git remove all branches except master windows
- install kubernetes on mac
- libracad ubuntu
- unrar installation using brew
- git clone protical https is not supported
- remove branch local git
- install ionic globally
- how to get list folder in cmd to value
- how to run an appimage in linux
- how to handle windows htrough sheels
- important linux command
- mount in linux
- install wmctrl
- shell remove file