This commit is contained in:
onceupon 2016-09-09 18:14:09 +08:00 committed by GitHub
parent 3cee5bb2ce
commit 38a4b52d93

View File

@ -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