Skip to content

Instantly share code, notes, and snippets.

@samiyuru
Last active February 17, 2022 20:34
Show Gist options
  • Save samiyuru/9888d84f9e586104a3a8eccf8f4cfada to your computer and use it in GitHub Desktop.
Save samiyuru/9888d84f9e586104a3a8eccf8f4cfada to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
NC_PORT=$1
find . -type f -print0 | xargs -0 sha1sum | sort > file_checksums.txt
echo "-----" > demo_information.txt
date >> demo_information.txt
pwd >> demo_information.txt
echo $USER >> demo_information.txt
cat file_checksums.txt >> demo_information.txt
echo -e "-----\n\n\n\n\n" >> demo_information.txt
cat demo_information.txt | nc -v vcf0.cs.uga.edu $NC_PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment