Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: [OT] Filtering / Highlighting serial port input / PuTTY output

by afoken (Chancellor)
on Aug 14, 2020 at 13:10 UTC ( [id://11120726]=note: print w/replies, xml ) Need Help??


in reply to Re^2: [OT] Filtering / Highlighting serial port input / PuTTY output
in thread [OT] Filtering / Highlighting serial port input / PuTTY output

Getting rid of unwanted lines:

plink -serial COM24 -sercfg 115200,8,n,1,N | perl -ne "/^(Pct|NRS)/ && + print"

Highlighting interesting lines instead:

plink -serial COM24 -sercfg 115200,8,n,1,N | perl -MTerm::ANSIColor -n +e "print colored($_, /^(Pct|NRS)/ ? 'bright_yellow' : 'white')"

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-25 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found