Mercurial > lbo > hg > localmr
view testdata/generate_sorted_files.sh @ 58:2e7fba6d7cad
Fix testdata in VCS, add comment to generate* script
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Fri, 05 Feb 2016 21:38:25 +0000 |
parents | a0647ae635e2 |
children |
line wrap: on
line source
#!/bin/bash # This script generates 11 files with random alphanumeric strings. # Those are used by certain tests to test and measure the performance of # sharded sort implementations. 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