• + 0 comments
    arr=()
    while read line; do arr+=($line); done
    echo ${arr[3]}
    

    without using Array:

    for ((i=0;i<=3;i++)); do read line; done
    echo $line