Random roll call reads the file name from the name.txt
[root @ VM_0_10_centos shellscript] # CAT randowName.sh
# ! / bin / bash
# random roll call is
# need to prepare in advance name.txt file, which is written the name, each line a
the while :
do
Line = `name.txt CAT | WC - l`
NUM = $ [the RANDOM Line% + . 1 ]
Sed -n " $ {P NUM} " name.txt
SLEEP 0.2
Clear
DONE