From da2f7b910e4778314bb0353e7675ec1aa6742053 Mon Sep 17 00:00:00 2001 From: onceupon Date: Thu, 25 Oct 2018 01:29:49 +0800 Subject: [PATCH] add system Stop tailing a file on program terminate --- README.md | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 10826ef..592ecb9 100644 --- a/README.md +++ b/README.md @@ -1890,7 +1890,11 @@ w ```bash users ``` - +##### Stop tailing a file on program terminate +```bash +tail -f --pid= filename.txt +# replace PID with the process ID of the program. +``` ## Hardware [[back to top](#handy-bash-oneliner-commands)] @@ -1989,6 +1993,12 @@ tr '\n' ' '