Forum Discussion
JQUINONES82NB
Nimbostratus
Jan 11, 2019LTM script modification
Was wondering if a SED Guru could help me but looking to transform a certain lines of configs in my f5 configuration using bash. i will have another file with an ip address mapping to do modificatio...
PeteWhite
Employee
Jan 11, 2019To do a simple replacement in sed you use sed
's///g'. The /g means replace more than one example.
eg
cat test.txt|sed 's/1.1.1.1/4.4.4.4/g'
I doubt that sed is powerful enough to do something as complex as this though - I would probably write it in Python as it's simple to learn and you can use regex etc to do complex matches and check the actual state, then print it out in the format that you want.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
