get random lines from file bash code example Example: randomly choose n rows from a file linux shuf -n 1000 file