Skip to content
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

Column-wise 1:1 append #70

Closed
Llammissar opened this issue Apr 27, 2017 · 2 comments
Closed

Column-wise 1:1 append #70

Llammissar opened this issue Apr 27, 2017 · 2 comments

Comments

@Llammissar
Copy link

Haha, while writing #68, I realised a couple other ones. This time, I realised there's no easy way to simply append a column to a TSV, as far as I can tell. Maybe something like this:

$ cat sample.tsv
foo	1	2
foo	3	22
foo	5	222
$ tsv-join --append sample.tsv sample.tsv
foo	1	2	foo	1	2
foo	3	22	foo	3	22
foo	5	222	foo	5	222

No filter file, just a line-by-line append. This would be useful for the cases where I want to calculate some sort of derived column and append it to the original file at the end of my pipeline or a periodic addition of new aggregated data in a time-series.

@jondegenhardt
Copy link
Contributor

Unix paste command has this functionality. Does it handle the cases you are looking for?

@Llammissar
Copy link
Author

Yeah, I admit I completely forgot about paste. This is probably not a very important one, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants