Search Results

Search: Posts Made By: mtomar
4,098
Posted By mtomar
@javahater / @jjb1989...
@javahater / @jjb1989 (https://www.unix.com/members/302089326.html)
I am not here to get marks on my scripting skills... they are doing fine for me.
As i already said this was just a quick draft ...
4,098
Posted By mtomar
Find largest number: declare -a num num=("3"...
Find largest number:
declare -a num
num=("3" "4" "1" "8" "2" "9" "7")
limit="`echo ${#num[@]}`"
check=0
i=0
while [ $i -lt $limit ]
do
if [ $check -lt ${num[$i]} ]; then
check="`echo...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 11:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy