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

Add support for pipeline #1

Open
liruqi opened this issue Dec 17, 2015 · 3 comments
Open

Add support for pipeline #1

liruqi opened this issue Dec 17, 2015 · 3 comments

Comments

@liruqi
Copy link

liruqi commented Dec 17, 2015

:-)

@physacco
Copy link
Owner

It's difficult to support pipeline for such cases because pipes are unseekable.
However, you can use it in this way:

$ producer > output
$ reverse output output.rev

@liruqi
Copy link
Author

liruqi commented Dec 20, 2015

How about reverse with separater like line break "\n".
reverse each line

@physacco
Copy link
Owner

Just reversing each line is not enough, the lines must be reversed too, e.g. the 1st line will become the last line.
Anyway, you have to cache the whole file (reversed or not) in memory, or write it to a temporary file.

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

No branches or pull requests

2 participants