Split large text files in Mac/Nix

Lets say you have a file full of passwords that is 62,000 lines and you want to chop the file into bite-sized pieces. There is an easy terminal command to help you with that! To split into multiple 1000 line files with a prefix of “SPLAT” here is the command: split -l 1000 textfile.txt SPLAT

Update $PATH variable on Mac Permanently

If you’re a developer or you commonly run apps from directory locations other than the default Mac locations, you probably hate typing out the full directory when running the app or script. To update the $PATH variable within the Terminal you just need to type: export PATH=/new/path:$PATH To update the $PATH variable PERMANENTLY you just … Continue Reading