五周第五次课

8.10 shell特殊符号cut命令

8.11 sort_wc_uniq命令

8.12 tee_tr_split命令

8.13 shell特殊符号下


8.10 shell特殊符号cut命令

cut命令

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_02

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_03

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_04

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_05

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_06

8.11 sort_wc_uniq命令

sort-wc-uniq命令

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_07

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_08

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_09

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_10

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_11

特殊符号都会认为是0

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_12

sort -n  以数字排序

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_13

sort -n  默认排序

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_14

sort -rn 为倒序

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_15

wc 命令

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_16


8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_17


uniq命令

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_18

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_19


8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_20

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_21

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_22

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_23

需要先排序,然后去重复

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_24

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_25


8.12 tee_tr_split命令

tee命令

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_26

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_27

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_28

tee作用:重定向和打印输出

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_29

tee也有追加的功能

tr命令

作用:替换字符

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_30

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_31

split命令

切割命令

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_32

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_33

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_34

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_35

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_36

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_37

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_38

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_39

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_40

split 按行来进行切割

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_41

8.13 shell特殊符号下

shell特殊符号

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_42

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_cut_43

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_44

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_45

|| 表示如果第一个命令执行成功,不执行后面的;如果第一个命令执行不成功,则执行后面的命令

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_46

&&:表示前面的命令执行成功,后面的命令也要执行成功

8.10 shell特殊符号cut命令  8.11 sort_wc_uniq命令  8.12 tee_shell_47