added word-boundries to catch only full tap names
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 19 Aug 2022 12:13:16 +0000 (14:13 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 19 Aug 2022 12:13:16 +0000 (14:13 +0200)
filter/tap-instance-nic

index fc32856..90e095f 100755 (executable)
@@ -1,3 +1,3 @@
 # brctl show br0060 | ./filter/tap-instance-nic
-sed -e "$( grep . /var/run/ganeti/kvm-hypervisor/nic/*/* | sed 's/[/:]/ /g' | awk '{ print "s/"$8"/"$8" "$6" "$7"/ " }' )"
+sed -e "$( grep . /var/run/ganeti/kvm-hypervisor/nic/*/* | sed 's/[/:]/ /g' | awk '{ print "s/\\b"$8"\\b/"$8" "$6" "$7"/ " }' )"