Skip to content

Instantly share code, notes, and snippets.

@tallesairan
Created August 3, 2022 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tallesairan/9a7386f980ecad83cb462cdc6625acbd to your computer and use it in GitHub Desktop.
Save tallesairan/9a7386f980ecad83cb462cdc6625acbd to your computer and use it in GitHub Desktop.
OSX Text Tools

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_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment