2009-12-02から1日間の記事一覧
#!/bin/sh #cmd_best10.sh H_FILE="$HOME/.bash_history" if [ ! -f "${H_FILE}" ]; then echo " Command history does not exist." exit 1 fi cat "${H_FILE}" \ | awk '{print $1}' \ | sort -f \ | uniq -c \ | sort -nr \ | head -10 unset H_FILE $ ./c…