mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 12:57:01 +00:00
add sed
Substitution with wildcard (e.g. replace a line start with aaa= by aaa=/my/new/path)
This commit is contained in:
parent
5a34554eea
commit
099fe975c0
@ -262,6 +262,12 @@ sed -s '$a,' *.json > all.json
|
||||
```bash
|
||||
sed 's/A/B/g' filename
|
||||
```
|
||||
|
||||
##### Substitution with wildcard (e.g. replace a line start with aaa= by aaa=/my/new/path)
|
||||
```bash
|
||||
sed "s/aaa=.*/aaa=\/my\/new\/path/g"
|
||||
```
|
||||
|
||||
##### Select lines start with string (e.g. bbo)
|
||||
|
||||
```bash
|
||||
|
Loading…
Reference in New Issue
Block a user