mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 14:27:01 +00:00
Use correct quoting
Unquote the sed expression. Signed-off-by: Linus G Thiel <linus@yesbabyyes.se>
This commit is contained in:
parent
c2b96736bd
commit
0f5fa26f06
@ -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