mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2024-11-23 13:13:11 +00:00
add sed
#####remove last character of file
This commit is contained in:
parent
b130948988
commit
ffee25e06b
1 changed files with 4 additions and 0 deletions
|
@ -303,6 +303,10 @@ sed 's=/=\\/=g'
|
||||||
```bash
|
```bash
|
||||||
sed 's/A-.*-e//g' filename
|
sed 's/A-.*-e//g' filename
|
||||||
```
|
```
|
||||||
|
#####remove last character of file
|
||||||
|
```bash``
|
||||||
|
sed '$ s/.$//'
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue