Wednesday, November 09, 2016

File system random write test

wtest()
{
    val=$(( ($RANDOM % 10000 ) + 1 ))
    name=$val
    echo $name
    while [ $val != 0 ]
    do
        echo $val >> $name
        val=$(( $val - 1 ))
    done
    rm $name
}

No comments: