Topic: Shell-procedure creation
Hello, help, please. Very long I sit with this problem, but I can not solve it in any way. It is necessary to implement shell-procedure which requests input sequentially several numbers with signs and displays 2 lists of numbers - positive and negative. all textbook of methodics, but unfortunately, anything carried out the useful. I ask from you the help.
I apply the code which is available for me at present (found it on open spaces of this forum). Unfortunately, errors are produced:
White Owl, tell please in what an error
# To deduce request echo-n # To read the list of numbers read NUMS # To deduce the first list for I in $NUMS do # To deduce those, zero. [$I-gt 0] && echo "$I" Done for I in $NUMS do # To deduce those, there is less than zero. [$I-lt 0] && echo "$I" Done