Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • I tried this but not worked. I am writing text to pipe but command not printing any output to stdout. Also I want to get 1 one as output when I write 1 to named pipe not all of the content of numbers.txt Commented Dec 3, 2016 at 20:36
  • @mesuutt It should be fine. Make sure you're indeed writing the the same pipe as you read from, so namely that both terminals are in the same directory. Use pwd if needed. Commented Dec 3, 2016 at 20:54
  • cat myfifo works as expected but cat myfifo | grep -f - numbers.txt or grep -f myfifo numbers.txt not printing anything to stdout. I have grep 2.25 version. Commented Dec 3, 2016 at 21:46
  • @mesuutt Same as me. Which version of Bash do you have? Commented Dec 3, 2016 at 21:58
  • I tested on bash 4.3.46 and zsh 5.2 on Arch linux. Commented Dec 3, 2016 at 22:06