mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-12-23 08:46:36 +00:00
add sed
add newline to the end
This commit is contained in:
parent
5c8c94171c
commit
7171f58f7a
@ -187,6 +187,10 @@ sed -i '$ s/.$//' filename
|
||||
```bash
|
||||
sed '$s/$/]/' filename
|
||||
```
|
||||
##### add newline to the end
|
||||
```bash``
|
||||
sed '$a\'
|
||||
```
|
||||
|
||||
##### add string to beginning of every line (e.g. bbo)
|
||||
|
||||
@ -313,6 +317,7 @@ sed '$ s/.$//'
|
||||
sed -r -e 's/^.{3}/&#/' file
|
||||
```
|
||||
|
||||
|
||||
## Awk
|
||||
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user