shell_02

cd / 

cd home/

cd yang01/

cd 桌面/

 

sort(排序):

sort etc/passwd

倒序:sort -r etc/passwd

【-t:以:分割;-k:第3列;-n:以数字,非ASCII】:sort -t: -k3 -r etc/passwd

 

cat:

--number:cat -n etc/passwd

 

uniq(去重):

uniq 04.txt

先排序再去重:sort -n 04.txt | uniq 

 

wc:

行数 单词数 字节数 文件名:8  32 104 student.txt】:wc student.txt

 

posted @ 2021-06-20 00:26  zxy_ang  阅读(19)  评论(0)    收藏  举报