Bash one-liner to read stdin and print last 10 matches each for 2 separate patterns, without usin...

Subscribers:
4,140
Published on ● Video Link: https://www.youtube.com/watch?v=6z8yYPOcuoY



Duration: 4:04
9 views
0


Bash one-liner to read stdin and print last 10 matches each for 2 separate patterns, without using tmp files / awk / perl / etc
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(superuser.com/users/477986/gene-pavlovsky)Gene Pavlovsky |
(superuser.com/users/68500/gilles-qu%c3%a9not)Gilles Quénot |
(superuser.com/users/68500/gilles-qu%c3%a9not)Gilles Quénot |
(superuser.com/users/68500/gilles-qu%c3%a9not)Gilles Quénot |
A special thanks goes out to the (https://superuser.com/questions/1769886/bash-one-liner-to-read-stdin-and-print-last-10-matches-each-for-2-separate-patte)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

grep bash







Tags:
grep
bash