You can use replace pattern.
root@SRX240HM-15# show interfaces ge-0/0/0
unit 0 {
family inet {
address 10.204.115.167/24;
}
}
[edit]
root@SRX240HM-15# replace pattern 167/24 with 142/25
[edit]
root@SRX240HM-15# show interfaces ge-0/0/0
unit 0 {
family inet {
address 10.204.115.142/25;
}
}
Thanks,
Suraj
Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too