1.显示重复的行
#sort testList | uniq -d
2.转换大小写
#cat word.list | tr '[a-z]' '[A-Z]'
or
#cat word.list | tr '[:lower:]' '[:upper:]'
3.删除空行
#cat word.list | tr -s '[/n]'
or
#tr -s '[/n]' < word.list
or
#tr -s '[/012]' < word.list
or
# grep -v '^$' word.list
4.删除空文件
#ls -l | awk '{if($5 == 0)print $NF}' | xargs -i rm {}
5.统计重复的行
#cat testList | uniq -dc