Add little snippet to decompress zlib files from bash

This commit is contained in:
Daniel - 2021-11-07 07:15:17 +01:00
parent 06a462b1d2
commit 542550031f
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 5 additions and 0 deletions

View File

@ -39,3 +39,8 @@ function tmux-main() {
select-layout even-vertical \; \
attach-session -t main
}
# https://unix.stackexchange.com/questions/22834/how-to-uncompress-zlib-data-in-unix
function zlibd() {
printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - "$@" | gzip -dc
}