1 想办法把当前目录下的文件的文件名中的小写字母全部替换为大写字母。
for f in `ls`; do if echo $f |grep -q '[a-z]'; then mv $f `echo $f|tr '[a-z]' '[A-Z]'`;fi; done


2.使用sort以":"为分隔符,对/etc/passwd文件的第5段排序。
sort -t: -k5  /etc/passwd


3.使用cut以":"为分隔符,截出/etc/passwd的第三段字符。
cut -d: -f3 /etc/passwd