From 5ea5bbc33b0275c6359a84abe84ee9c66a0eed84 Mon Sep 17 00:00:00 2001 From: Arthur She Date: Mon, 22 Jun 2015 18:40:13 -0700 Subject: ubuntu: ubuntu/script/rt-tests-parasr.sh Remove grep option 'P' that was not supported by busybox. Change-Id: Ibff9a7b5c0ae539aa32368dc0f7a43bbdc1c5f7e --- ubuntu/scripts/rt-tests-parser.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntu/scripts/rt-tests-parser.sh b/ubuntu/scripts/rt-tests-parser.sh index 4d9b1c7..b5cea6e 100755 --- a/ubuntu/scripts/rt-tests-parser.sh +++ b/ubuntu/scripts/rt-tests-parser.sh @@ -3,7 +3,7 @@ LOG=$1 # Find the last line number which starting with control character -N=`grep -Pn "\x1b" ${LOG} | tail -n1 | cut -d':' -f1` +N=`grep -n "#0:" ${LOG} | tail -n1 | cut -d':' -f1` # The rest of lines from #N is the final test result we want sed -i "s/\x1b\[[0-9]A//" ${LOG} # Remove the control code sed -n "${N},$ p" ${LOG} > tmp.log -- cgit v1.2.3