Output direct product of lines of each files.
$ prod <(printf "%s\n" A B C) <(seq 2)
A 1
A 2
B 1
B 2
C 1
C 2
$ prod [OPTION]... [FILE]...
Output direct product of lines of each files.
Options:
-s, --separator=STRING use STRING to separate columns (default: \t)
--help display this help text and exit
--version display version information and exit
Display a help message.
Output the version of prod.
Use STRING instead of \t to separate columns.
$ prod <(seq 0 1) <(seq 0 1) <(seq 0 1)
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
$ prod --separator=, <(seq 0 1) <(seq 0 1) <(seq 0 1)
0,0,0
0,0,1
0,1,0
0,1,1
1,0,0
1,0,1
1,1,0
1,1,1
If an empty file is included in [FILE]..., prod outputs nothing.
$ prod <(printf "%s\n" A B) /dev/null <(seq 7)
MIT License
nil2 nil2@nil2.org