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
You should use shuf command =)
shuf
cat file1 file2 | shuf
Or with Perl :
cat file1 file2 | perl -MList::Util=shuffle -wne 'print shuffle <>;'