Answers for "bash randomly shuffle all rows of a file"

1

bash randomly shuffle all rows of a file

# Basic syntax:
cat your_file | shuf
# Note, you can specify multiple files after cal to randomly shuffle
#	the rows of multiple files into one output
Posted by: Guest on January-18-2022
1

randomly choose n rows from a file linux

shuf -n 1000 file
Posted by: Guest on March-04-2020

Code answers related to "bash randomly shuffle all rows of a file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language