mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-25 22:07:01 +00:00
commit
b1137da792
@ -511,7 +511,7 @@ sed -i '1s/^/[/' file
|
|||||||
|
|
||||||
##### Add string at certain line number (e.g. add 'something' to line 1 and line 3)
|
##### Add string at certain line number (e.g. add 'something' to line 1 and line 3)
|
||||||
```bash
|
```bash
|
||||||
sed -e '1isomething -e '3isomething'
|
sed -e '1isomething' -e '3isomething'
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Add string to end of file (e.g. "]")
|
##### Add string to end of file (e.g. "]")
|
||||||
|
Loading…
Reference in New Issue
Block a user