#!/bin/bash # # use whatever meaningless text you like here: text="thequickbrownfoxjumpsoverthelazydogthequickbrownfoxjumpsoverthelazydogthequickbrownfoxjumpsoverthelazydog" # try and write 10000 files, adjust this if required i=1 while [ $i -le 10000 ] do # generate a unique filename using the date command filename="file-`date +%s.%N`" # display progress echo "$i $filename" # write 1,000,000 lines to each file j=1 while [ $j -le 1000000 ] do #echo $text >> ~/mount/disk/$filename echo $text >> /tmp/fart ((j++)) done ((i++)) done exit