add sed wildcard

This commit is contained in:
onceupon 2016-10-13 17:57:34 +08:00 committed by GitHub
parent 188f621d1d
commit 073fa9d7af

View File

@ -299,6 +299,12 @@ sed -n '10,33p' <filename
sed 's=/=\\/=g' sed 's=/=\\/=g'
``` ```
#####replace with wildcard (e.g A-1-e or A-2-e or A-3-e....)
```bash
sed 's/A-.*-e//g' filename
```
#Awk #Awk
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)] [[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]