Skip to content

HIt a gotcha during qsv cat columns command #2198

Answered by jqnatividad
reader3 asked this question in Q&A
Discussion options

You must be logged in to vote

@reader3 , since you didn't provide a small reproducible example, I created one.

testcatcolempty.csv
testcatcol3.csv
testcatcol2.csv
testcatcol1.csv

$ qsv cat columns testcatcol1.csv testcatcol2.csv testcatcol3.csv | qsv table
col1  col2  col3  col1  col2  col3  col1  col2  col3
2     28    19    2     28    19    2     28    19
6     56    11    6     56    11    6     56    11
51    86    11    51    86    11    51    86    11
39    68    18    39    68    18    39    68    18
85    69    36    85    69    36    85    69    36

since testcatcolempty.csv is empty, we need to use the --pad option

$ qsv cat columns --pad testcatcol1.csv testcatcolempty.csv testcatcol2.csv testcatcol3.csv |…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jqnatividad
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