mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 06:17:01 +00:00
add basename
This commit is contained in:
parent
540c89273a
commit
188f621d1d
@ -1220,6 +1220,14 @@ $ split -d -l 1000 bigfilename
|
|||||||
rename 's/ABC//' *.gz
|
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
|
##System
|
||||||
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
||||||
|
Loading…
Reference in New Issue
Block a user