Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@subzey
Created July 31, 2019 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subzey/66941cf743686044eb123f0dacf47aff to your computer and use it in GitHub Desktop.
Save subzey/66941cf743686044eb123f0dacf47aff to your computer and use it in GitHub Desktop.
tar.gz with indentical file test
#!/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