add basename

This commit is contained in:
onceupon 2016-10-06 16:39:20 +08:00 committed by GitHub
parent 540c89273a
commit 188f621d1d

View file

@ -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)]