Need help with the logic for ksh script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need help with the logic for ksh script
# 1  
Old 08-03-2017
Need help with the logic for ksh script

Hi guys
I am having hard time to figure out the logic for the following problem:

I have a line of sorted numbers , for example 19 34 44 49 64
I am trying to find the way to determine which two numbers are in between the number I have specified.

for example if 34 is specified 19 and 44 should be returned.

Thanks a lot for any help and ideas
# 2  
Old 08-03-2017
Double posting (see here) , thread closed.
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help with the logic for ksh script

Hi guys I am having hard time to figure out the logic for the following problem: I have a line of sorted numbers , for example 19 34 44 49 64 I am trying to find the way to determine which two numbers are in between the number I have specified. for example if 34 is specified 19 and 44... (4 Replies)
Discussion started by: desant
4 Replies

2. Shell Programming and Scripting

import var and function from ksh script to another ksh script

Ih all, i have multiples ksh scripts for crontab's unix jobs they all have same variables declarations and some similar functions i would have a only single script file to declare my variables, like: var1= "aaa" var2= "bbb" var3= "ccc" ... function ab { ...} function bc { ... }... (2 Replies)
Discussion started by: wolfhurt
2 Replies
Login or Register to Ask a Question