2 ms·
I find awk more clear for this kind of job. You can replace grep -Po "(?<=ip=)(.*)" with awk -F= '$1 == "ip" { print $2 }'
by networked 2y ago
I find awk more clear for this kind of job. You can replace
grep -Po "(?<=ip=)(.*)"
with
awk -F= '$1 == "ip" { print $2 }'
- macote 2y agoThanks for that, I agree.