From 201223cf0ba956948e21fae0e343c87b59b7cfc1 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 9 Sep 2011 14:16:58 +0200 Subject: //doc/cookbook/reducer: use BRE @sed --- doc/cookbook/reducer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/cookbook/reducer.sh b/doc/cookbook/reducer.sh index fa3d4e3d..648047fb 100755 --- a/doc/cookbook/reducer.sh +++ b/doc/cookbook/reducer.sh @@ -1,7 +1,7 @@ #! /bin/sh # TODO tolower tr '[:upper:]' '[:lower:]' | -sed -r ' - s/\ Date: Fri, 9 Sep 2011 14:40:49 +0200 Subject: //gold/mining/bin/cleanup_tmp: use BRE @sed --- gold/mining/bin/cleanup_tmp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gold/mining/bin/cleanup_tmp b/gold/mining/bin/cleanup_tmp index e1395b19..ce72d906 100755 --- a/gold/mining/bin/cleanup_tmp +++ b/gold/mining/bin/cleanup_tmp @@ -1,4 +1,4 @@ #! /bin/sh -ls -lAtr /tmp/ | sed -rn ' - /\.so$/{$!{s/.* ([A-Za-z0-9]+\.so)$/rm -v \/tmp\/\1/p}} +ls -lAtr /tmp/ | sed -n ' + /\.so$/{$!{s/.* \([A-Za-z0-9\]\+\.so\)$/rm -v \/tmp\/\1/p}} ' | sudo sh -- cgit v1.2.3 From f8dcc0059b8e53def57b242e2e093009b998865c Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 9 Sep 2011 14:50:28 +0200 Subject: //host/dist/arch/getsize: use BRE @sed --- host/dist/arch/getsize | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/host/dist/arch/getsize b/host/dist/arch/getsize index d099c9e2..a2ef8f95 100755 --- a/host/dist/arch/getsize +++ b/host/dist/arch/getsize @@ -1,13 +1,13 @@ #! /bin/sh set -euf -sed -rn ' +sed -n ' /^Name/{ - s/^Name *: *(.*)$/\1/ + s/^Name *: *\(.*\)$/\1/ T h } /^Installed Size/{ - s/^Installed Size *: *(.*)$/ \1/ + s/^Installed Size *: *\(.*\)$/ \1/ T H x -- cgit v1.2.3