Commit 5a053dc5 authored by Christian Boltz's avatar Christian Boltz

speed up aa-decode by using a bash regex matching instead of calling egrep for each line.

Acked-by: default avatarSteve Beattie <[email protected]>

(Patch sent 2012-11-01, Acked-by from 2013-01-01)
parent 3690a2e1
......@@ -70,7 +70,7 @@ fi
while read line ; do
# check if line contains encoded name= or profile=
if echo "$line" | egrep ' (name|profile)=[0-9a-fA-F]' >/dev/null ; then
if [[ "$line" =~ \ (name|profile)=[0-9a-fA-F] ]]; then
# cut the encoded filename/profile name out of the line and decode it
ne=`echo "$line" | sed 's/.* name=\([^ ]*\).*$/\\1/g'`
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment