Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #t=(`ls -S $1`);echo ${t[0]}
- max=0
- output="not found"
- for i in `ls $1`;do
- temp="$1$i"
- if [[ -f $temp ]];then
- temp_max=`wc -c $temp`
- temp_max=($temp_max)
- temp_max=${temp_max[0]}
- if [[ $max -lt $temp_max ]];then
- max=$temp_max
- output=$i
- fi
- fi
- done
- echo "$output"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement