mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 06:17:01 +00:00
add sed
This commit is contained in:
parent
3cee5bb2ce
commit
38a4b52d93
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user