diff options
author | Momo <momorientes@online.de> | 2011-09-09 14:58:58 +0200 |
---|---|---|
committer | Momo <momorientes@online.de> | 2011-09-09 14:58:58 +0200 |
commit | 6a2c1014c99ff37028c138dfc12722849f72eab9 (patch) | |
tree | d36f7b5462e2a157cd107cb496f2972cead9196b | |
parent | e73eebac6be277bb20d1effc25d4c29900eb1df1 (diff) | |
parent | f8dcc0059b8e53def57b242e2e093009b998865c (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
-rwxr-xr-x | doc/cookbook/reducer.sh | 4 | ||||
-rwxr-xr-x | gold/mining/bin/cleanup_tmp | 4 | ||||
-rwxr-xr-x | host/dist/arch/getsize | 6 |
3 files changed, 7 insertions, 7 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/\<dosen?//g +sed ' + s/\<dosen\?//g s/mark//g ' 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 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 |