|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
csh - check input value
Hi,
Unluckily I have to use c shell script (but I am not that familiar with c shell), the code I need is as follows :- 1 - Let the user input an integer. 2 - if the user does not type in anything, prompt to him/her to enter an integer. 3 - if the user enters a string(say for "92abc" or "abcd"), prompt to him/her for an integer. 4 - if the user enters an integer, echo the value to screen. |
|
#2
|
|||
|
|||
|
why do you ' have to use c shell script' ??
|
|
#3
|
|||
|
|||
|
Quote:
That is one of the requirement from one of my assignment. That's the reason I am looking for fishermen who can handle `sea` shell. Any fishermen there ? |
|
#4
|
|||
|
|||
|
on the Q: are you stupid ?
i have the alternatives: - yes - i don't write c-scripts |
|
#5
|
|||
|
|||
|
alternatively:
- no - i write c-scripts ![]() |
|
#6
|
|||
|
|||
|
people making such 'requirements'
should a little study an OS, just 4 char beginning by lowercase 'u' && and ending by lowercase 'x' in the middle you find an 'n' 4 nothing && an 'i' 4 interesting. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > csh - check input value |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|