<commit_before>#!/bin/sh
# Write multiple USB keys repeatedly
# <NAME> 2013

# To turn off auto mounting of USB devices in Debian I created the following file in the folder /etc/udev/rules.d/ 85-no-automount.rules
# Just add the line below and nothing else, reboot is not needed
# ENV{UDISKS_AUTOMOUNT_HINT}="never"

# Create the amount of folders you want if you want to write to more than 2 devices just add to the for line the extra devices
for f in /mnt/usb1 /mnt/usb2 
do
# I can't be bothered with doing something smart here so I hide the error output since the directories are being recreated every time.
mkdir $f > /dev/null 2>& 1 & 
 # do something on $f
done

# Just add mount lines with the same amount of devices you will be using.
mount /dev/sdb1 /mnt/usb1
mount /dev/sdc1 /mnt/usb2

#Copy all pdf from run folder to the destination drives
cp *.pdf $f

echo "md5sum of original files"
md5sum *.pdf
echo "md5sum of destination files"
md5sum $f/*.pdf

# Unmount the USB sticks
umount /mnt/usb1
umount /mnt/usb2
<commit_msg>Update writer.sh<commit_after>#!/bin/sh
# Write multiple USB keys repeatedly
# <NAME> 2013

# To turn off auto mounting of USB devices in Debian I created the following file in the folder /etc/udev/rules.d/ 85-no-automount.rules
# Just add the line below and nothing else, reboot is not needed
# ENV{UDISKS_AUTOMOUNT_HINT}="never"

# Create the amount of folders you want if you want to write to more than 2 devices just add to the for line the extra devices
for f in /mnt/usb1 /mnt/usb2 
do
# I can't be bothered with doing something smart here so I hide the error output since the directories are being recreated every time.
mkdir $f > /dev/null 2>& 1 & 
 # do something on $f
done

# Just add mount lines with the same amount of devices you will be using.
mount /dev/sdb1 /mnt/usb1
mount /dev/sdc1 /mnt/usb2

#Copy all pdf from run folder to the destination drives
cp *.pdf /mnt/usb1
cp *.pdf  /mnt/usb2

echo "md5sum of original files"
md5sum *.pdf
echo "md5sum of destination files"
md5sum /mnt/usb1/*.pdf
md5sum /mnt/usb2/*.pdf

# Unmount the USB sticks
umount /mnt/usb1
umount /mnt/usb2

{'fraction_non_alphanumeric': 0.07518796992481203, 'fraction_numerical': 0.022086466165413533, 'mean_word_length': 3.7101769911504423, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5229240', 'n_tokens_mistral': 727, 'n_tokens_neox': 685, 'n_words': 328}