How can find largest number

May 6, 2009 at 21:45:35
Specs: Unix
Hi,

How can i find the largest number that are given from the command line ( more than three numbers ).

Thanks,
Teja


See More: How can find largest number

Report •


#1
May 6, 2009 at 22:32:04
What do you mean?

WinSimple Software
CompTIA A+ Certified


Report •

#2
May 6, 2009 at 23:01:35
i would like to know the shell script to find out the largest number that are given from the command line ( for more than tree numbers )

Report •

#3
May 7, 2009 at 07:17:01
#!/bin/ksh

# no error checking
echo "enter a string of numbers"
read string

echo $string|xargs -n1|sort -nr|awk ' { print $1; exit } '


Report •

Related Solutions

#4
May 11, 2009 at 23:14:12
Thank you its working.

Report •


Ask Question