Remove common keyword from a filed value

After I have apply the filter, I received output like below

command_set ="CmdAV=show ip policy <cr>"

But I need a output like below.

command_set ="show ip policy"

For the filed command_set, CmdAV= is common and I need to remove CmdAV= keyword from the filed value.

I have tried gsub and it removed all word followed by the keypair.

Are there Any other method to resolve this

gsub is the right option but it sounds like you misconfigured it.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.