Skip to content

Instantly share code, notes, and snippets.

@johnkors
Last active August 8, 2017 07:57
Show Gist options
  • Save johnkors/f82f6280206018a8a11507edca29a4f1 to your computer and use it in GitHub Desktop.
Save johnkors/f82f6280206018a8a11507edca29a4f1 to your computer and use it in GitHub Desktop.
Useful shell cmds

Split a file

Ex. split log file into 50MB chunks, use digits as postfix, use file-ending .log on created files

λ split MyHugeFileOfManyGBs.log -C 50m -d --additional-suffix .log

List contents of files

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