If that's not enough, Gzip files start with a header including a magic number (1f 8b)
You could also look if available uncompress tools have a check option to validate if it's a legit format.°
°) See documentation for gunzip
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re: How to test if a file is gzipped or not
by LanX
in thread How to test if a file is gzipped or not
by Special_K
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |