Skip to content

Instantly share code, notes, and snippets.

@otrack
Last active July 19, 2021 14:13
Show Gist options
  • Save otrack/677b289eece33bb354558ebd1e46bdc1 to your computer and use it in GitHub Desktop.
Save otrack/677b289eece33bb354558ebd1e46bdc1 to your computer and use it in GitHub Desktop.
#!/bin/bash
REGIONS=4
for i in $(seq 1 1 ${REGIONS});
do
rm -f region-${i}.txt
for j in $(seq 1 1 ${REGIONS} | shuf);
do
if [ "${i}" -ne "${j}" ]
then
echo "100/100/100/region-${j}" >> region-${i}.txt
fi
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment