summaryrefslogtreecommitdiffstats
path: root/retiolum/bin/hosts
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2014-04-20 22:51:35 +0200
committertv <tv@nomic.retiolum>2014-04-20 22:51:35 +0200
commit74ac7de3f0ada98d591f4b67e21ec0eeedb638fa (patch)
tree070f568e199ca07d318fa471f413fe98d8f3323b /retiolum/bin/hosts
parent59c99ac37ce28d3684cf5b61180c588ff8408762 (diff)
retiolum/bin/hosts: \? is not BRE
Diffstat (limited to 'retiolum/bin/hosts')
-rwxr-xr-xretiolum/bin/hosts4
1 files changed, 2 insertions, 2 deletions
diff --git a/retiolum/bin/hosts b/retiolum/bin/hosts
index 4856d494..4426a811 100755
--- a/retiolum/bin/hosts
+++ b/retiolum/bin/hosts
@@ -6,8 +6,8 @@ netname=${1-retiolum}
cd /etc/tinc/$netname/hosts
for i in `ls`; do
- sed -n '
- s|^ *Subnet *= *\([^ /]*\)\(/[0-9]*\)\? *$|\1\t'$i'.'$netname' '$i'|p
+ sed -En '
+ s|^ *Subnet *= *([^ /]*)(/[0-9]*)? *$|\1\t'$i'.'$netname' '$i'|p
' $i
done | sort