Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: extract the tail from a string (with new lines) containing a substring

by tybalt89 (Monsignor)
on Jan 21, 2020 at 20:40 UTC ( [id://11111705]=note: print w/replies, xml ) Need Help??


in reply to extract the tail from a string (with new lines) containing a substring

Maybe just leave this running

tail -F file-B | grep --line-buffered -A 3 -B 3 xxx >>file-A

and just look at file-A every 20 minutes...

  • Comment on Re: extract the tail from a string (with new lines) containing a substring
  • Download Code

Replies are listed 'Best First'.
Re^2: extract the tail from a string (with new lines) containing a substring
by jjmoka (Beadle) on Jan 22, 2020 at 22:56 UTC
    When simple is beauty. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11111705]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-19 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found