Skip to content

Instantly share code, notes, and snippets.

@wkoffel
wkoffel / gist:5436879
Created April 22, 2013 17:20
Awk script for splitting very large files. Customize the field and record separators and size for the split.
# split.awk --- do split in awk
#
# Requires ord() and chr() library functions
# usage: split [-num] [file] [outname]
BEGIN {
RS = "\036"
ORS = "\036"