1. readfile="file.txt"
    2. row_num=$(cat ${readfile} | wc -l)
    3. if [ ${row_num} -lt 10 ]
    4. then
    5. echo
    6. else
    7. sed -n "10p" $readfile
    8. fi