#!/bin/bash echo "Seems to be illegal MSFT format:" cat guid.txt | grep "MSFT " | grep -v "\-000000000046" echo "" echo "Seems to be illegal NCS format (reserved bits are set, family is > 13):" # TODO: check for reserved bits # TODO: check family # TODO: check for fake "abc00000-" beginning cat guid.txt | grep "NCS " echo "" echo "Using of the reserved UUID variant (bits 111)" cat guid.txt | grep "RES! " echo "" echo "Using of illegal version information in the RFC4122 variant:" cat guid.txt | grep "RFCv0! " cat guid.txt | grep "RFCv6! " cat guid.txt | grep "RFCv7! " cat guid.txt | grep "RFCv8! " cat guid.txt | grep "RFCv9! " cat guid.txt | grep "RFCv10! " cat guid.txt | grep "RFCv11! " cat guid.txt | grep "RFCv12! " cat guid.txt | grep "RFCv13! " cat guid.txt | grep "RFCv14! " cat guid.txt | grep "RFCv15! " echo ""