Find all files in the /etc directory with a .conf extension, randomly sort them, print the first 50 characters of each file, and generate an MD5 checksum for each file.
find /etc -type f -name '*.conf' -print0 | sort -R | xargs -0 head -c 50 | md5sum