Created
July 31, 2019 13:05
-
-
Save subzey/66941cf743686044eb123f0dacf47aff to your computer and use it in GitHub Desktop.
tar.gz with indentical file test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for size in 10K 20K 30K 31K 32K 40K 50K | |
do | |
echo "Two identical files of ${size}" | |
head -c ${size} /dev/urandom > file1.bin | |
cp file1.bin file2.bin | |
tar -czf test.tar file1.bin file2.bin | |
wc -c test.tar | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment