Search Results

Search: Posts Made By: moo72moo
5,383
Posted By moo72moo
thx jean-Pierre. I added the if statement to...
thx jean-Pierre. I added the if statement to your code to handle if log file gets truncated/rolled/etc....
Last=0
while : do
Line=$(wc -l < moo.txt)
if [ $Line -lt $Last ]
then ...
5,383
Posted By moo72moo
script to tail file; problem with awk and special characters
Trying to use code that I found to send only new lines out of a log file by doing:
while :; do
temp=$(tail -1 logfile.out)
awk "/$last/{p=1}p" logfile.out #pipe this to log analyzer program...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy