經安全檢測,此網站為安全網站,請放心前往原始網址!

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

網址安全性掃描由 google 提供