edit remove lines with string

add case insensitive
This commit is contained in:
onceupon 2017-10-26 16:14:20 +08:00 committed by GitHub
parent 646caf4def
commit afc0010830

View File

@ -157,10 +157,13 @@ sed 1d filename
sed 1,100d filename
```
##### Remove lines with word (e.g. bbo)
#####
remove lines with string (e.g. bbo)
```bash
sed "/bbo/d" filename
- case insensitive:
sed "/bbo/Id" filename
```
##### Edit infile (edit and save)