Skip to content

Commit cc81c7e

Browse files
authored
decompress.sh has been added (#6357)
1 parent 056e4b5 commit cc81c7e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# example: ./decompress.sh big.json
4+
5+
echo gzip
6+
time gzip -k -d -c -- "$1.gz" > /dev/null # gzip
7+
8+
echo lz4
9+
time lz4 -k -d -c -- "$1.lz4" > /dev/null # lz4
10+
11+
echo brotli
12+
time brotli -k -d -c -- "$1.br" > /dev/null # brotli
13+
14+
echo bzip2
15+
time bzip2 -k -d -c -- "$1.bz2" > /dev/null # bzip1
16+
17+
echo zstd
18+
time zstd -k -d -c -- "$1.zst" > /dev/null # zstd
19+
20+
echo xz
21+
time xz -k -d -c -- "$1.xz" > /dev/null # xz

0 commit comments

Comments
 (0)