Hello. Here is the start of the quest.
The Process Generator transfers information to the Processor Process using a file. The “Processor” process should perform the following processing of new lines in this file: if the line contains a single “+” character, then the process is a processor ...
Continuation is not important. The question is how to handle new strings. I know that there is a tail command with the -f flag to monitor a file, but I can't shove it into my script. I tried it like this
while read s do echo $s done < $(tail -f "file.txt") did not work, blank lines are output. I also tried it like this
while true do read s < "file.txt" echo $s done in infinite loop displays the first line. How to organize the reading of new lines?