mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2024-11-22 20:54:19 +00:00
Update README.md
This commit is contained in:
parent
c9807c97c7
commit
df9707071d
1 changed files with 2 additions and 2 deletions
|
@ -368,12 +368,12 @@ sed 's=/=\\/=g'
|
|||
sed 's/A-.*-e//g' filename
|
||||
```
|
||||
##### Remove last character of file
|
||||
```bash``
|
||||
```bash
|
||||
sed '$ s/.$//'
|
||||
```
|
||||
|
||||
##### Insert character at specified position of file (e.g. AAAAAA --> AAA#AAA)
|
||||
```bash``
|
||||
```bash
|
||||
sed -r -e 's/^.{3}/&#/' file
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue