mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2025-07-13 08:19:56 +02:00
add sed
This commit is contained in:
@ -188,6 +188,12 @@ sed -i '$ s/.$//' filename
|
|||||||
sed '$s/$/]/' filename
|
sed '$s/$/]/' filename
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#####add string to beginning of every line (e.g. bbo)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sed -e 's/^/bbo/' file
|
||||||
|
```
|
||||||
|
|
||||||
#####add string to end of each line (e.g. "}")
|
#####add string to end of each line (e.g. "}")
|
||||||
```bash
|
```bash
|
||||||
sed -e 's/$/\}\]/' filename
|
sed -e 's/$/\}\]/' filename
|
||||||
|
Reference in New Issue
Block a user