- uniq 去取重复的行
-c, --count prefix lines by the number of occurrences
- sort 排序
-r 以相反的顺序来排序
-n 依照数值的大小排序
- head 显示开头
-n 显示的行数
#!/bin/bash
Year=`date +%Y`
Month=`date +%m`
Day=`date +%d`
Hour=`date +%H`
Minute=`date +%M`
Second=`date +%S`
echo `date`
echo "Current Date is: $Day-$Month-$Year"
echo "Current Time is: $Hour:$Minute:$Second"