logoalt Hacker News

stousettoday at 4:29 AM2 repliesview on HN

https://man7.org/linux/man-pages/man1/mkfifo.1.html

Pretty simple. This creates a named pipe. One end of a shell command redirects to it, one end redirects from it. rm when finished.


Replies

akdev1ltoday at 5:13 AM

You can just use process substitution

cat <(secret-print my-secret)

SoftTalkertoday at 5:33 AM

In a shell script situation, you'd typically trap EXIT and ERR and remove the fifo in the handler.