insert character at specified position of file
This commit is contained in:
onceupon 2017-02-13 16:15:38 +08:00 committed by GitHub
parent ffee25e06b
commit f8b83766ca

View File

@ -308,7 +308,10 @@ sed 's/A-.*-e//g' filename
sed '$ s/.$//'
```
#####insert character at specified position of file (e.g. AAAAAA --> AAA#AAA)
```bash``
sed -r -e 's/^.{3}/&#/' file
```
#Awk
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]