TR(1) Cac cau lnh TR(1) TEN tr - translate or delete characters TOM TT tr [OPTION]... STRING1 [STRING2] MO T Translate, squeeze, and/or delete characters from standard input, writing to standard output. STRING1 and STRING2 specify arrays of characters ARRAY1 and ARRAY2 that control the action. -c, -C, --complement use the complement of ARRAY1 -d, --delete delete characters in ARRAY1, do not translate -s, --squeeze-repeats replace each sequence of a repeated character that is listed in the last specified ARRAY, with a single occurrence of that character -t, --truncate-set1 first truncate ARRAY1 to length of ARRAY2 --help hin th tr giup nay ri thoat --version dua ra thong tin phien bn ri thoat ARRAYs are specified as strings of characters. Most represent themselves. Interpreted sequences are: \NNN ky t vi gia tr bat phan NNN (1 ti 3 ch s) \\ s cheo nguc \a ting chuong BEL nghe ro \b xoa lui \f keo trang \n dong mi \r return \t ct tab theo chiu ngang \v ct tab theo chiu dc KY_T1-KY_T2 mi ky t t KY_T1 dn KY_T2 theo th t tang dn [KY_T*] in ARRAY2, copies of CHAR until length of ARRAY1 [KY_T*REPEAT] LP LI sao chep ca KY_T, LP LI bat phan nu bt du t 0 [:alnum:] mi ch cai va ch s [:alpha:] mi ch cai [:blank:] mi khong trng nm ngang [:cntrl:] mi ky t diu khin [:digit:] mi ch s [:graph:] mi ky t co th in, tr khong trng [:lower:] mi ch cai vit thung [:print:] mi ky t co th in, ly c khong trng [:punct:] mi ky t chm cau [:space:] mi khong trng nm ngang hoc dng [:upper:] mi ch cai vit hoa [:xdigit:] mi ch s thp lc [=KY_T=] mi ky t tuong duong vi KY_T Translation occurs if -d is not given and both STRING1 and STRING2 appear. -t is only significant when translating. ARRAY2 is extended to length of ARRAY1 by repeating its last character as necessary. Excess characters of ARRAY2 are ignored. Character classes expand in unspecified order; while translating, [:lower:] and [:upper:] may be used in pairs to specify case conversion. Squeezing occurs after translation or deletion. BUGS Full support is available only for safe single-byte locales, in which every possible input byte represents a single character. The C locale is safe in GNU systems, so you can avoid this issue in the shell by running LC_ALL=C tr instead of plain tr. TAC GI Vit bi Jim Meyering. THONG BAO LI Tr giup trc tuyn GNU coreutils: Report any translation bugs to BN QUYN Copyright (C) 2023 Free Software Foundation, Inc. Giy phep GPL pb3+ : Giy phep Cong cng GNU phien bn 3 hay sau . Day la phn mm t do: bn co quyn sa di va phat hanh li no. KHONG CO BO HANH GI C, vi diu khin duc phap lut cho phep. XEM THEM Tai liu dy d co ti: hoc sn co ni b thong qua: info '(coreutils) tr invocation' DCH Bn dch ting Vit ca trang hung dn nay do thc hin. Bn dch nay la Tai liu Min phi; dc Giy phep Cong cng GNU Phien bn 3 hoc mi hon d bit cac diu khon bn quyn. Chung toi cho rng KHONG CO TRACH NHIM PHAP LY. Nu bn tim thy mt s sai sot trong bn dch ca trang hung dn nay, vui long gi thu dn TODO <>. GNU coreutils 9.4 Thang 1 nam 2024 TR(1)