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

[Feature request | inicomp] Passing FILE1 and FILE2 via pipe #41

Open
ohault opened this issue May 19, 2024 · 2 comments
Open

[Feature request | inicomp] Passing FILE1 and FILE2 via pipe #41

ohault opened this issue May 19, 2024 · 2 comments

Comments

@ohault
Copy link

ohault commented May 19, 2024

The goal would be to support a command like the following

c:>type FILE1.REG FILE2.REG | inicomp -f

Combined with #39, this will provide even more possibilities.

@JFLarvoire
Copy link
Owner

This is not possible, as there is no way to know where file 1 ends and file 2 begins.

What could be done is to pipe a single file on stdin, and use the special argument "-" to refer to that stream instead of a file name on the command line.
Still I don't see a practical use case where this would be useful. (This makes sense only if .ini files themselves are piped-out by other commands.)

@ohault
Copy link
Author

ohault commented May 22, 2024

Indeed, I forgot to add a delimiter!

The goal would be to ingest into inicomp the result of a pre-processing performed both on FILE1 and FILE2 via for each a pipe

FILE1.ini | compact
(1 + 2 =>)| inicomp > result.txt
FILE2.ini | compact

Is there a standard and/or predefined delimiter for this purpose?

We can contextualize this as being related to graphics-based processing more akin to https://docs.pipewire.org/ for audio/video than pipe support in the OS.

Are there any graph-based processing tools/frameworks for file management or could Pipewire be used with text files as well?

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