Gitiles
Code Review
Sign In
192.168.1.100
/
R306
/
5dec5e7d0ca055c66338541af5f9ebab46c3f65a
/
.
/
ap
/
app
/
Script
/
scripts
/
print_errmsg.sh
blob: 4530abd5bf9a2e9b1bc234efd67f864dbf3b47b6 [
file
] [
log
] [
blame
]
yuezonghe
824eb0c
2024-06-27 02:32:26 -0700
[
diff
] [
blame
]
1
#!/bin/sh
2
3
echo
"error:"
4
grep
"\<${1##0}\>"
/
etc_ro
/
errmsg
.
txt
|
sed
-
n
"s/#define[[:blank:]]\+[a-zA-Z0-9]\+[[:blank:]]\+[0-9]\+[[:blank:]]\+\(.*\)/\1/p"
|
awk
-
F
'*'
'{print $2}'