-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About specifying input and output format #199
Comments
Thanks, I will definitely write this up as an FAQ! Additionally:
|
thank you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm a basic user of mlr and I'm becoming mad for stupid thing: specifying input and (especially) output format.
If I run
I have an error, because I must write
--ocsv
for output. I lost (I'm stupid :) ) a lot of minutes to figure out how to correct the above command, for two reasons:i
and than--ijson
for input (it works in both ways). Than for me it had to be the same also for output and I was looking for syntax errors only in the input file and not in the command. For me--csv
had to be ok;--o
to the format name (i.e. --ocsv, --ojson, etc.) and optionally prepend--i
for input one". I think it would be good to have itProbably the right way is to add dedicated section in the documentation, because mlr option for input and output are many:
mlr --ijson cat input.json
, to set the input as json and to have the default output;mlr --json cat input.json
, to set the input and output as json;mlr --ijson --ocsv cat input.json
, to set the input as json and to have csv output;mlr --json --ocsv cat input.json
, to set the input as json and to have csv output;mlr --j2c cat input.json
, to set the input as json and to have csv output;echo "name=tom,age=22\nname=bianca,age=34" | mlr --ocsv cat
, to set csv as output and use the default input format;Thank you
The text was updated successfully, but these errors were encountered: