Merge files Cd folder with all files cat *.csv >combined.csv Shuffle lines perl -MList::Util=shuffle -e 'print shuffle();' < myfile > target_file homebrew shuf words.txt > shuffled_words.txt Split lines split -l 100000 myfile myfile_split_