mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 06:17:01 +00:00
edit remove lines with string
add case insensitive
This commit is contained in:
parent
646caf4def
commit
afc0010830
@ -157,10 +157,13 @@ sed 1d filename
|
|||||||
sed 1,100d filename
|
sed 1,100d filename
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Remove lines with word (e.g. bbo)
|
#####
|
||||||
|
remove lines with string (e.g. bbo)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sed "/bbo/d" filename
|
sed "/bbo/d" filename
|
||||||
|
- case insensitive:
|
||||||
|
sed "/bbo/Id" filename
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Edit infile (edit and save)
|
##### Edit infile (edit and save)
|
||||||
|
Loading…
Reference in New Issue
Block a user