diff options
Diffstat (limited to 'retiolum')
-rwxr-xr-x | retiolum/bin/hosts | 4 |
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 |