diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2015-08-12 15:00:40 +0200 |
---|---|---|
committer | Anders Roxell <anders.roxell@linaro.org> | 2015-09-08 12:01:35 +0200 |
commit | 6256b67e0f1bc496c51a8198aee0117852edd90e (patch) | |
tree | 91efc6c55962ff2abd928d9a313f3984d62a9750 | |
parent | d3d1d1de42afb31ee58781d13462d26a5b04bda9 (diff) |
common/scripts/parse_lmbench: busybox grep don't support --text
Change-Id: Ib7353e14da01306a405581a1ffc92526389314bc
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rwxr-xr-x | common/scripts/parse_lmbench.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/scripts/parse_lmbench.sh b/common/scripts/parse_lmbench.sh index a2df97f..f6cb8af 100755 --- a/common/scripts/parse_lmbench.sh +++ b/common/scripts/parse_lmbench.sh @@ -3,8 +3,8 @@ LOG_FILE=$1 OUTPUT_FILE=$3 TMP_FILE="$1.$$" -BEGIN=$(grep --text -n "^BEGIN LMBENCH" $LOG_FILE | awk -F ':' '{print $1}') -END=$(grep --text -n "^END LMBENCH" $LOG_FILE | awk -F ':' '{print $1}') +BEGIN=$(cat $LOG_FILE | grep -n "^BEGIN LMBENCH" | awk -F ':' '{print $1}') +END=$(cat $LOG_FILE | grep -n "END LMBENCH" | awk -F ':' '{print $1}') BEGINNING=$(expr $(expr $END - $BEGIN) + 1) head -n $END $LOG_FILE | tail -n $BEGINNING >$TMP_FILE |