This commit is contained in:
onceupon 2016-07-13 16:29:31 +08:00 committed by GitHub
parent 9dfff5b1fc
commit e69ac89075

View File

@ -146,6 +146,11 @@ sed 's/^$/d'
sed '$d' sed '$d'
``` ```
#####add string to end of each line (e.g. "}")
```bash
sed -e 's/$/\}\]/'
```
#####add \n every nth character (e.g. every 4th character) #####add \n every nth character (e.g. every 4th character)
```bash ```bash