who call tell the answer of this simple question?# Unix - 噫吁兮,危乎高哉
c*y
1 楼
A programmer extends this script to check whether the input is a valid decimal
number. If it isn't, the program outputss
the string"NotANumber"(without quotes). The resulting code is
1 #!.usr.dt.bin.dtksh
2
3 N=${1}
4
5 if ["${N}" -eq"0${N}"] 2>/dev/null
6 then
7
8 dc < 9 ${N}
10 16
11 o
12 p
13 end_of_input
14
15 #Answer to this question
16
17 fi
number. If it isn't, the program outputss
the string"NotANumber"(without quotes). The resulting code is
1 #!.usr.dt.bin.dtksh
2
3 N=${1}
4
5 if ["${N}" -eq"0${N}"] 2>/dev/null
6 then
7
8 dc <
10 16
11 o
12 p
13 end_of_input
14
15 #Answer to this question
16
17 fi