Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.
/ funjoin Public archive

Split separated input into files

License

Notifications You must be signed in to change notification settings

sjmulder/funjoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note:

This project has been merged into unjoin.


funjoin

Build status

Split separated input into files

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).

Author

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