中文字幕亚洲第一精品|精品国产免费一区二区|久久婷婷五月六月综合版|中文字幕熟妇久久久人妻|久久综合精品国产一区无码|国产成人精品永久免费视频|午夜亚洲国产精品理论片a级|久久精品一区二区三区无码护土

 訪(fǎng)問(wèn)手機(jī)版  

Linux常用命令|Linux培訓(xùn)學(xué)習(xí)|考試認(rèn)證|工資待遇與招聘,認(rèn)準(zhǔn)超級(jí)網(wǎng)工!

招聘|合作 登陸|注冊(cè)

網(wǎng)絡(luò)工程師培訓(xùn)

當(dāng)前位置:網(wǎng)絡(luò)工程師 > 技術(shù)課程 > linux > 熱點(diǎn)關(guān)注 > linux常用命令

Linux命令總結(jié)之tr命令

時(shí)間:2019-08-11

linux命令_linux命令_linux重啟命令

轉(zhuǎn)載地址,做了部分補(bǔ)充。謝謝原作者。

[tr?ns?leit]

vi.翻譯, 能被譯出

vt.翻譯, 解釋, 轉(zhuǎn)化, 轉(zhuǎn)變?yōu)? 調(diào)動(dòng)

在這里用到的意思是轉(zhuǎn)化,轉(zhuǎn)變,轉(zhuǎn)換,在linux下輸入tr --help查看一下提示:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

amosli@amosli-pc:~$tr--help

Usage:tr[OPTION]... SET1 [SET2]

Translate, squeeze, and/ordelete characters from standard input,

writing to standard output.

-c, -C, --complement use the complement of SET1

-d, --delete delete charactersinSET1,donot translate

-s, --squeeze-repeats replace each input sequence of a repeated character

that is listedinSET1 with a single occurrence

of that character

linux命令_linux重啟命令_linux命令

-t, --truncate-set1 first truncate SET1 to length of SET2

--help display this help andexit

--version output version information andexit

SETs are specified asstringsof characters. Most represent themselves.

Interpreted sequences are:

\NNN character with octal value NNN (1 to 3 octal digits)

\\ backslash

\a audible BEL

\b backspace

\f form feed

\n new line

\rreturn

\t horizontal tab

\vvertical tab

CHAR1-CHAR2 all characters from CHAR1 to CHAR2inascending order

[CHAR*]inSET2, copies of CHARuntillength of SET1

[CHAR*REPEAT] REPEAT copies of CHAR, REPEAT octalifstarting with 0

[:alnum:] all letters and digits

[:alpha:] all letters

[:blank:] all horizontal whitespace

[:cntrl:] all control characters

[:digit:] all digits

[:graph:] all printable characters, not including space

[:lower:] all lowercaseletters

print all the element (key) in the list after the given operations. two consequtive keys should be separated by a single space.。replace unsafe characters with their escape sequences. unsafe characters are those characters that may be altered during transport across the internet, and include the (<, >, ", #, {, }, |, \, ^, ~, [, ], and ') characters. this flag applies to all urls, including opaque urls.。replace unsafe characters with their escape sequences. unsafe characters are those characters that may be altered during transport across the internet, and include the (<, >, ", #, {, }, |, \, ^, [, ], and ') characters. this flag applies to all urls, including opaque urls.。

 上一個(gè)教程:Linux命令:install