mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2024-11-26 14:40:16 +00:00
add sed
This commit is contained in:
parent
9dfff5b1fc
commit
e69ac89075
1 changed files with 5 additions and 0 deletions
|
@ -146,6 +146,11 @@ sed 's/^$/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)
|
||||
|
||||
```bash
|
||||
|
|
Loading…
Reference in a new issue