Unix script to sort numbers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pratimapaudel
    New Member
    • Jul 2007
    • 24

    Unix script to sort numbers

    Can anyone help me to do this problem?
    Question goes like below:


    Use C or Borne shell. Take two integer command line arguments. The script should display the numbers between the two integers (including the two numbers) in ascending order if the first number is smaller than the second, and in descending order if the first number is greater than the second. Do proper exception handling in code.

    Thanks,
  • ashitpro
    Recognized Expert Contributor
    • Aug 2007
    • 542

    #2
    Originally posted by pratimapaudel
    Can anyone help me to do this problem?
    Question goes like below:


    Use C or Borne shell. Take two integer command line arguments. The script should display the numbers between the two integers (including the two numbers) in ascending order if the first number is smaller than the second, and in descending order if the first number is greater than the second. Do proper exception handling in code.

    Thanks,
    Hi there,

    This is one of the easiest assignment related to shell script.
    Show us your attempts and we'll fix the problem.

    Regards,
    Ash

    Comment

    Working...