| Post Reply | RetroFed Forums Forum Index » Shell Scripting |
| Author | Message | ||
|---|---|---|---|
|
loveknight
programming.dev
loveknight@programming.dev Joined: 2025-06-13 |
Edit: I figured it out: The solution is over a process substitution operator:
See also the comment by @notabot@piefed.social below, this StackOverflow comment, and the GNU documentation.. It's comparatively straightforward to use the content of one variable in
However, is there a way to serve both input 'files' from variables, avoiding temporary files on the disk? It seems like the easiest way would be via creating and mounting a temporary partition via
and just create temporary files in there. And afterwards clean things up. So far I've also attempted here-documents, but apparently this too can only provide standard input, so that the other input still has to be served from a file. Maybe one can also try doing it via named pipes ( |
||
| 1 Original | |||
| Post Reply |
Back to top |