Skip to content

Instantly share code, notes, and snippets.

View jasonmklug's full-sized avatar

Jason M. Klug jasonmklug

View GitHub Profile
# https://man7.org/linux/man-pages/man1/split.1.html
# split [-l line_count] [-b byte_count] [-n chunk_count] [file [prefix]]
TARGET_LINE_COUNT=1000
ORIGINAL_FILENAME=nr_file.csv
NEW_NAME_PREFIX=chunk_
# Split original file into smaller "chunk" files of 5000 lines
split -l $TARGET_LINE_COUNT -d $ORIGINAL_FILENAME $NEW_NAME_PREFIX

Keybase proof

I hereby claim:

  • I am jasonmklug on github.
  • I am jasonmklug (https://keybase.io/jasonmklug) on keybase.
  • I have a public key ASCfJZN-ELqIhiZ31gNeJSZbODwlO6ojfY8KPqBTBIYfHgo

To claim this, I am signing this object: