Skip to content

split: is there way to set output folder? #1402

Answered by johnkerl
aborruso asked this question in Q&A
Discussion options

You must be logged in to vote

@aborruso I think you want --prefix (and the online help can be clearer about this fact):

$ mlr --d2p split -n 2 --prefix /tmp/abor data/small
$ ls -l /tmp/abor*
-rw-r--r--  1 johnkerl  wheel  127 Sep 26 08:14 /tmp/abor_1.pprint
-rw-r--r--  1 johnkerl  wheel  132 Sep 26 08:14 /tmp/abor_2.pprint
-rw-r--r--  1 johnkerl  wheel  128 Sep 26 08:14 /tmp/abor_3.pprint
-rw-r--r--  1 johnkerl  wheel  126 Sep 26 08:14 /tmp/abor_4.pprint
-rw-r--r--  1 johnkerl  wheel  133 Sep 26 08:14 /tmp/abor_5.pprint
$ for x in /tmp/abor*; do echo; echo $x; cat $x; done

/tmp/abor_1.pprint
a   b   i x                  y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.52215110833347…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aborruso
Comment options

Answer selected by aborruso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants