mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-25 22:07:01 +00:00
Update README.md
This commit is contained in:
parent
c9807c97c7
commit
df9707071d
@ -368,12 +368,12 @@ sed 's=/=\\/=g'
|
|||||||
sed 's/A-.*-e//g' filename
|
sed 's/A-.*-e//g' filename
|
||||||
```
|
```
|
||||||
##### Remove last character of file
|
##### Remove last character of file
|
||||||
```bash``
|
```bash
|
||||||
sed '$ s/.$//'
|
sed '$ s/.$//'
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Insert character at specified position of file (e.g. AAAAAA --> AAA#AAA)
|
##### Insert character at specified position of file (e.g. AAAAAA --> AAA#AAA)
|
||||||
```bash``
|
```bash
|
||||||
sed -r -e 's/^.{3}/&#/' file
|
sed -r -e 's/^.{3}/&#/' file
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user