#!/bin/sh # Generates numbers from 1 to first argument given (which should be an # integer), randomly permutated, in groups of 3 separated by whilelines, and # stores in file in /tmp/ . Needs dr_permutate and groups-of-three. # This file is in the public domain # Author: Joost van Baal, 2010 case $1 in [1-9]|[0-9][0-9]|[0-9][0-9][0-9]) : ;; *) echo first argument should be integer between 0 and 1000; exit 1 ;; esac seq 1 $1 | dr_permutate | groups-of-three > /tmp/the-numbers-$1 echo output is in file /tmp/the-numbers-$1