How can I kill the tail process after having found special command
tail -f filename | grep -m1 " special string" | tee txtfile
After founding the "special string" the tail function needs to be killed to execute the rest of the program.
How can I kill the tail process after having found special command
tail -f filename | grep -m1 " special string" | tee txtfile
After founding the "special string" the tail function needs to be killed to execute the rest of the program.