#!/bin/bash
function getfile(){
arr=(`ls $1`)
sum=${#arr[@]+1}
if [ $sum -gt 1 ]
then
echo "All= ${arr[@]}"
local i
max=${arr[0]}
for((i=0;i<${#arr[@]};i++))
do
echo "item = $max : ${arr[i]}"
if test "$max" \< "${arr[i]}"
then
max=${arr[i]}
fi
done
echo $max
fi
for file in `ls $1`
do
if test -d "$1/$file"
then
getfile $1"/"$file
else
local path=$1"/"$file
local name=$file
fi
done
}
INIT_PATH="AppStoreRoom"
getfile $INIT_PATH
function getfile(){
arr=(`ls $1`)
sum=${#arr[@]+1}
if [ $sum -gt 1 ]
then
echo "All= ${arr[@]}"
local i
max=${arr[0]}
for((i=0;i<${#arr[@]};i++))
do
echo "item = $max : ${arr[i]}"
if test "$max" \< "${arr[i]}"
then
max=${arr[i]}
fi
done
echo $max
fi
for file in `ls $1`
do
if test -d "$1/$file"
then
getfile $1"/"$file
else
local path=$1"/"$file
local name=$file
fi
done
}
INIT_PATH="AppStoreRoom"
getfile $INIT_PATH