my @foo = @{[`cat very_large_file`]}[0..3]; #### #!/bin/bash while :; do rand -N 100 done