mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 12:57:01 +00:00
add sed
insert character at specified position of file
This commit is contained in:
parent
ffee25e06b
commit
f8b83766ca
@ -308,7 +308,10 @@ sed 's/A-.*-e//g' filename
|
|||||||
sed '$ s/.$//'
|
sed '$ s/.$//'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#####insert character at specified position of file (e.g. AAAAAA --> AAA#AAA)
|
||||||
|
```bash``
|
||||||
|
sed -r -e 's/^.{3}/&#/' file
|
||||||
|
```
|
||||||
|
|
||||||
#Awk
|
#Awk
|
||||||
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
||||||
|
Loading…
Reference in New Issue
Block a user