From 68a5c78d49a04188639516fc50c4b541df81fe82 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 13 Jun 2010 15:00:39 -0700 Subject: Add scripts/random-image --- scripts/random-image | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/random-image (limited to 'scripts') diff --git a/scripts/random-image b/scripts/random-image new file mode 100755 index 00000000..cabd1e73 --- /dev/null +++ b/scripts/random-image @@ -0,0 +1,14 @@ +#!/bin/bash + +FILE=$1 +TEMPFILE=`mktemp $1.XXXXXX` + +trap "rm -f $TEMPFILE" EXIT +sort -R $FILE > $TEMPFILE + +for FILENAME in `cat $TEMPFILE`; do + + echo $FILENAME + hdfsee --int-boost=10 ${2}${FILENAME} + +done -- cgit v1.2.3