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 From dd5d0af9e64e343e68d5b3fc766767f5ebfa9a89 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 20 Apr 2014 22:54:02 +0200 Subject: retiolum/bin/hosts: osx doesn't know \t --- retiolum/bin/hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'retiolum/bin/hosts') diff --git a/retiolum/bin/hosts b/retiolum/bin/hosts index 4426a811..44dbd88d 100755 --- a/retiolum/bin/hosts +++ b/retiolum/bin/hosts @@ -7,7 +7,7 @@ cd /etc/tinc/$netname/hosts for i in `ls`; do sed -En ' - s|^ *Subnet *= *([^ /]*)(/[0-9]*)? *$|\1\t'$i'.'$netname' '$i'|p + s|^ *Subnet *= *([^ /]*)(/[0-9]*)? *$|\1 '$i'.'$netname' '$i'|p ' $i done | sort -- cgit v1.2.3