commit | 9ed821d7e5d875a3395740a9cc2545671fa429b7 | [log] [tgz] |
---|---|---|
author | lh <lh@exm.com> | Fri Apr 07 01:36:19 2023 -0700 |
committer | lh <lh@exm.com> | Fri Apr 07 01:36:19 2023 -0700 |
tree | 121b5ff9a43e30066e3b33d57065b04bcf9bbabf | |
parent | a10a76fcf09e2ec7e9055902f242dff467ab9654 [diff] [blame] |
[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/app/Script/scripts/get_errinfo.sh b/ap/app/Script/scripts/get_errinfo.sh new file mode 100644 index 0000000..5ac323d --- /dev/null +++ b/ap/app/Script/scripts/get_errinfo.sh
@@ -0,0 +1,4 @@ +#!/bin/sh + +line=`grep "^$1" -n /sbin/app_errmsg.txt | awk -F: '{print $1}'` +awk -F= -v c=$2 -v n=$line '(NR - n == c) {print $2}' /sbin/app_errmsg.txt