-
Notifications
You must be signed in to change notification settings - Fork 220
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
Short option for --nidx --fs tab #158
Comments
Cool; |
Awesome. Do you have a preference which of the two is |
@sjackman i don't have a preference. |
I use |
Woohoo! Thanks, John. New release pending? |
Pretty soon ... I want to get the comment-skipper in there too and it needs a bunch of regression tests, and one more corner-case to implement. |
Awesome. While you're doing the comment-skipper, I have a use case to pass all comments through unmodified to the output. Think that could make it in? |
bler, i don't know how to do that within the miller streaming architecture ... |
I was thinking as it's read in from the input, if it's a comment, immediately write that same line out to the output. |
gler, that would be ok with line-at-a-time mappers but w sort etc it's not clear to me what would be the right thing to do. |
Print the comment lines out in the order that they're observed. In the case of sort, the comment lines would appear before the normal records in the order that they're observed, which would be consistent with a stable sort where a comment line sorts before any other record. That happens to be the behaviour that I need. In my case, the comment lines all appear at the top of the file before the normal records. |
The TSV file format of
cut
and friends is sufficiently common that I feel that--nidx --fs tab
warrants a short option, similar to-p
, perhaps-t
. It's particularly handy when usingmlr
to replace commands fromcoreutils
, for example,mlr -t cut -f 3
. Your thoughts?I'd also suggest a short option for
--tsvlite
, perhaps-T
.The text was updated successfully, but these errors were encountered: