diff options
author | tv <tv@nomic.retiolum> | 2014-04-20 22:51:35 +0200 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2014-04-20 22:51:35 +0200 |
commit | 74ac7de3f0ada98d591f4b67e21ec0eeedb638fa (patch) | |
tree | 070f568e199ca07d318fa471f413fe98d8f3323b | |
parent | 59c99ac37ce28d3684cf5b61180c588ff8408762 (diff) |
retiolum/bin/hosts: \? is not BRE
-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 |