由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - who call tell the answer of this simple question?
相关主题
[转载] Re: Tcl questionHow to answer these questions?
Command line extend beyond a sing lineplease answer my question
don't intentionally give wrong answers[合集] 在线提供一家top3管理咨询公司的非技术题(欢迎讨论答案)
[转载] 再来一份UNIX的题。question and answer site for review
happy new year, one security related question (UNIX)F1身份能做FDA美国代理人吗?
how to extend an offerWhat should I do with this SR answer?
Quick question: BaoZis are rewared.外国记者问64的事了
亏了,没有用couponlove letter from russian girl. lol
相关话题的讨论汇总
话题: answer话题: question话题: input话题: simple话题: decimal
进入Unix版参与讨论
1 (共1页)
c********y
发帖数: 6
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
c********y
发帖数: 6
2
No one knows shell commands? I guess that's not a hard question although I
don't know
what the answer is.

decimal

【在 c********y 的大作中提到】
: 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

1 (共1页)
进入Unix版参与讨论
相关主题
love letter from russian girl. lolhappy new year, one security related question (UNIX)
LOL: Answering Machinghow to extend an offer
Answer你会遇到几段恋情? (转载)Quick question: BaoZis are rewared.
Re: 请教个小问题亏了,没有用coupon
[转载] Re: Tcl questionHow to answer these questions?
Command line extend beyond a sing lineplease answer my question
don't intentionally give wrong answers[合集] 在线提供一家top3管理咨询公司的非技术题(欢迎讨论答案)
[转载] 再来一份UNIX的题。question and answer site for review
相关话题的讨论汇总
话题: answer话题: question话题: input话题: simple话题: decimal