mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2025-03-08 17:17:18 +00:00
edit remove lines with string
add case insensitive
This commit is contained in:
parent
646caf4def
commit
afc0010830
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue