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

Make sure unlimited file can be piped #137

Open
dundalek opened this issue Apr 27, 2019 · 0 comments
Open

Make sure unlimited file can be piped #137

dundalek opened this issue Apr 27, 2019 · 0 comments

Comments

@dundalek
Copy link
Owner

In bash following processes each line as it is appended to a file:

tail -F tmp.log | while read LOGLINE; do echo `date` ":" $LOGLINE; done

In closh that could be:

tail -F tmp.log |> #(doseq [line %] (println (sh-str date) ":" line))

Make sure it can process potentially unlimited file. Make sure the pipe operator |> uses lazy-seqs.

Make sure that piping large streams, e.g. /dev/zero will not run out of memory.

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

1 participant