SysToolsLib icon indicating copy to clipboard operation
SysToolsLib copied to clipboard

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

Open ohault opened this issue 1 year ago • 2 comments

The goal would be to support a command like the following

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

Combined with https://github.com/JFLarvoire/SysToolsLib/issues/39, this will provide even more possibilities.

ohault avatar May 19 '24 19:05 ohault

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.)

JFLarvoire avatar May 22 '24 13:05 JFLarvoire

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?

ohault avatar May 22 '24 15:05 ohault