diff options
author | makefu <github@syntax-fehler.de> | 2014-04-25 12:02:12 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-04-25 12:02:12 +0200 |
commit | 9afc6e2d0237ae84c084cc05492bf0f285f98851 (patch) | |
tree | fcf6627e59387cbb5c3a19f10caa366dec39842a /retiolum/bin/hosts | |
parent | 9bdee602a30f715c9ba2583d3948c360448c670b (diff) | |
parent | 771b8cb9526255d54c8069b49503b427058a84b0 (diff) |
Merge branch 'master' of ssh://github.com/krebscode/painload
Diffstat (limited to 'retiolum/bin/hosts')
-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..44dbd88d 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 '$i'.'$netname' '$i'|p ' $i done | sort |