From 74ac7de3f0ada98d591f4b67e21ec0eeedb638fa Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 20 Apr 2014 22:51:35 +0200 Subject: retiolum/bin/hosts: \? is not BRE --- retiolum/bin/hosts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'retiolum/bin/hosts') 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 -- cgit v1.2.3