Skip to content

Instantly share code, notes, and snippets.

@kinow
Created August 31, 2016 06:56
Show Gist options
  • Save kinow/8f9da3a3df9f0bfe0893aaba8a5efe32 to your computer and use it in GitHub Desktop.
Save kinow/8f9da3a3df9f0bfe0893aaba8a5efe32 to your computer and use it in GitHub Desktop.
Creating random TAP files
#!/bin/bash
r=$(( RANDOM%10 ))
for ((i=1; i<=r; i++)); do
echo "Creating file result_$i.tap"
cat > "result_$i.tap" <<EOF
1..1
ok 1
EOF
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment