grab 4 random lines in file bash code example Example: randomly choose n elements from a text file linux shuf -n 1000 file