mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2024-11-26 14:40:16 +00:00
add basename
This commit is contained in:
parent
540c89273a
commit
188f621d1d
1 changed files with 8 additions and 0 deletions
|
@ -1220,6 +1220,14 @@ $ split -d -l 1000 bigfilename
|
|||
rename 's/ABC//' *.gz
|
||||
```
|
||||
|
||||
#####remove extention (e.g remove .gz from filename.gz)
|
||||
```bash
|
||||
basename filename.gz .gz
|
||||
|
||||
zcat filename.gz> $(basename filename.gz .gz).unpacked
|
||||
```
|
||||
|
||||
|
||||
|
||||
##System
|
||||
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
||||
|
|
Loading…
Reference in a new issue