Skip to content

Commit 6a2c101

Browse files
author
Momo
committed
Merge branch 'master' of https://github.com/krebscode/painload
2 parents e73eeba + f8dcc00 commit 6a2c101

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

doc/cookbook/reducer.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/sh
22
# TODO tolower
33
tr '[:upper:]' '[:lower:]' |
4-
sed -r '
5-
s/\<dosen?//g
4+
sed '
5+
s/\<dosen\?//g
66
s/mark//g
77
'

gold/mining/bin/cleanup_tmp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#! /bin/sh
2-
ls -lAtr /tmp/ | sed -rn '
3-
/\.so$/{$!{s/.* ([A-Za-z0-9]+\.so)$/rm -v \/tmp\/\1/p}}
2+
ls -lAtr /tmp/ | sed -n '
3+
/\.so$/{$!{s/.* \([A-Za-z0-9\]\+\.so\)$/rm -v \/tmp\/\1/p}}
44
' | sudo sh

host/dist/arch/getsize

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#! /bin/sh
22
set -euf
3-
sed -rn '
3+
sed -n '
44
/^Name/{
5-
s/^Name *: *(.*)$/\1/
5+
s/^Name *: *\(.*\)$/\1/
66
T
77
h
88
}
99
/^Installed Size/{
10-
s/^Installed Size *: *(.*)$/ \1/
10+
s/^Installed Size *: *\(.*\)$/ \1/
1111
T
1212
H
1313
x

0 commit comments

Comments
 (0)