#! /bin/bash rnd=$[ $RANDOM % 12801 ] cd /home/hs/raz/FENZIN.ORG book=`ls -R|grep rar|head -n$rnd|tail -n1` cd ~/text/ find /home/hs/raz/FENZIN.ORG -name $book -exec unrar x {} \;
тут 12801 - число книг, FENZIN.ORG папка с книгами
#! /bin/bash rnd=$[ $RANDOM % 12801 ] cd /home/hs/raz/FENZIN.ORG book=`ls -R|grep rar|head -n$rnd|tail -n1` cd ~/text/ find /home/hs/raz/FENZIN.ORG -name $book -exec unrar x {} \;