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". ;-)