I have some files in linux. For example 2 and i need shuffling the files in one file.
For example
$cat file1 line 1 line 2 line 3 line 4 line 5 line
Just a note to OS X users who use MacPorts: the shuf command is part of coreutils and is installed under name gshuf.
shuf
coreutils
gshuf
$ sudo port install coreutils $ gshuf example.txt # or cat example.txt | gshuf