Created
May 13, 2017 11:03
-
-
Save JohnLonginotto/2112cc0a054f6244983348e83a24d5ad to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if [ "`tail -c 28 /path/to/your.bam`" != "`echo -n -e '\x1f\x8b\x08\x04\x00\x00\x00\x00\x00\xff\x06\x00\x42\x43\x02\x00\x1b\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00'`" ]; then echo 'File Truncated'; else echo 'File Good!'; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment