Bash Script: How to sort an array | Linux Blog
Source: cat sort_array.sh #!/bin/bash array=(a x t g u o p w d f z l) declare -a sortarray touch tmp for i in ${array[@]}; do echo $i >> tmp `sort tmp -o tmp` done while read line; do sortarray=(${sortarray[@]} $line) done < tmp rm tmp echo "Here is ...
linuxpoison.blogspot.com |