view testdata/generate_sorted_files.sh @ 46:17cd79f05e93

Add script to generate test files of sorted inputs
author Lewin Bormann <lbo@spheniscida.de>
date Tue, 02 Feb 2016 07:44:47 +0000
parents
children a0647ae635e2
line wrap: on
line source

#!/bin/bash

for I in {0..10}; do
    cat /dev/urandom | tr -dc "\n[:alnum:]" | egrep '[[:alnum:]]{15,}' | colrm 16 | head -n 1000000 | sort > sorted${I}.txt;
done