Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: regex for identifying encrypted text

by skendric (Novice)
on Jun 29, 2018 at 22:57 UTC ( #1217634=note: print w/replies, xml ) Need Help??


in reply to regex for identifying encrypted text

I ended up:

(a) Pre-parsing both files into arrays

(b) Using a crude state machine to skip the BEGIN ... END sections

(c) Then handing the shrunken arrays to Text::Diff

Thank you all for helping me to think through this.

P.S. This script now allows me to checkpoint my firewall config files into a config database, so that I can do things like report on how frequently we change firewall configuration.

  • Comment on Re: regex for identifying encrypted text

Replies are listed 'Best First'.
Re^2: regex for identifying encrypted text
by Anonymous Monk on Sep 02, 2019 at 09:19 UTC
    I have to write a config diff script having the exact same request. Would it be possible for you to provide this part of your script? with diff -I I'm able to filter lines like 'set password ENC' etc. but I wasn't able to filter the certificate part

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2020-11-26 19:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?