Article 5GCTC Replacement of Lines in a file -Linux

Replacement of Lines in a file -Linux

by
ssguru
from LinuxQuestions.org on (#5GCTC)
There are several lines (like below) across many files

Format

set -rules XXXX -location {YYYY.v:4} -msg { ZZZZ} -comment {Auto-generated by: FOO on 01-26-2021 10:30:35}

I want to change above to new format

set -rule {XXX} -expression {(Details =~ ZZZZ") && File=~ YYYY.v:4")} -status {Waived} -lastedit_user {FOO} -lastedit_time
{01-26-2021 10:30:35}

Can anyone please let me know how to this in perl or linux command to replace and get to new formatlatest?d=yIl2AUoC8zA latest?i=7jGqjbJz_98:IZY42f3wlBE:F7zBnMy latest?i=7jGqjbJz_98:IZY42f3wlBE:V_sGLiP latest?d=qj6IDK7rITs latest?i=7jGqjbJz_98:IZY42f3wlBE:gIN9vFw7jGqjbJz_98
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments