Split separated input into files
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Jun 30, 2018
.travis.yml Add Travis configuration Dec 6, 2018
CHANGELOG.md Explicitly set permissions on install Dec 6, 2018
LICENSE.md Initial commit Jun 30, 2018
Makefile Explicitly set permissions on install Dec 6, 2018
README.md Fix typo Jul 22, 2018
funjoin.1 Documentation tweaks Jun 30, 2018
funjoin.c Fix warning on OpenBSD Jul 28, 2018

README.md

funjoin

Split separated input into files

Synopsis

unjoin [-f prefix] [-n number] separator ...

Description

funjoin splits standard input, separated by any separator, into files named "xx" and two decimal digits.

Options:

-f prefix -- Use prefix instead of "xx".

-n number -- Use number of digits instead of 2.

Examples

Split on underscores and double colons:

$ echo "one::two_three" | funjoin _ ::
$ cat xx01
two

Building

Unix-likes:

make

# tweak Makefile to taste
make install
make uninstall

See also

csplit(1), split(1), unjoin(1).

Authors

By Sijmen J. Mulder (ik@sjmulder.nl). Based on unjoin(1). Options output file naming copied from OpenBSD csplit(1).