Linux sort,uniq,cut,wc???????
???????????? ???????[ 2016/7/25 10:39:15 ] ????????Linux ??????
????????????????????У?????????λ?????????????????
????#sort testfile | uniq -c
????1 friend
????3 hello
????2 world
???????????????????У????????????????????????
????#sort testfile | uniq -dc
????3 hello
????2 world
??????????????????
????sort testfile | uniq -u
????friend
????cut
????cut???????????????????????????????????С?
????cut??
????[root@www~]# cut -d'??????' -f fields ???????????????
????[root@www~]# cut -c ??????? ????????????????
??????????????
????-d ???????????????? -f ???????
????-f ?????? -d ???????????????????????Σ??? -f ???????ε??????
????-c ??????? (characters) ???λ?????????????
????[root@www~]# cut -d'??????' -f fields ???????????????
????[root@www~]# cut -c ??????? ????????????????
??????????????
????-d ???????????????? -f ???????
????-f ?????? -d ???????????????????????Σ??? -f ???????ε??????
????-c ??????? (characters) ???λ?????????????
????PATH ????????
????[root@www~]# echo $PATH
????/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/games
????# 1 | 2 | 3 | 4 | 5 | 6 | 7
????[root@www~]# echo $PATH
????/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/games
????# 1 | 2 | 3 | 4 | 5 | 6 | 7
?????? PATH ????????????????????·????
????#echo $PATH | cut -d ':' -f 5
????/usr/local/bin
????#echo $PATH | cut -d ':' -f 5
????/usr/local/bin
?????? PATH ?????????????????????????·????
????#echo $PATH | cut -d ':' -f 3??5
????/sbin:/usr/local/bin
?????? PATH ??????????????????????????·????
????echo $PATH | cut -d ':' -f 3-
????/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/games
?????? PATH ??????????????????????????·????
????#echo $PATH | cut -d ':' -f 1-3
????/bin:/usr/bin:/sbin:
?????? PATH ?????????????????????????????е????·????
????echo $PATH | cut -d ':' -f 1-3??5
????/bin:/usr/bin:/sbin:/usr/local/bin
???????????:????/etc/passwd???????shell
????#cat /etc/passwd | cut -d ':' -f 1??7
????root:/bin/bash
????daemon:/bin/sh
????bin:/bin/sh
????wc
???????????????ж????????????У??????????
????wc??
????[root@www~]# wc [-lwm]
??????????????
????-l ?????г??У?
????-w ?????г???????(??????)??
????-m ???????????
??????????wc???/etc/passwd
????#wc /etc/passwd
????40 45 1719 /etc/passwd
????40????????45?????????1719???????
????wc??????????????????????????£?
????#wc -l /etc/passwd #????????????????????????
????40 /etc/passwd #???????40?????
????#wc -w /etc/passwd #????????????
????45 /etc/passwd
????#wc -m /etc/passwd #?????????????
????1719
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
?????????????????HBase????????ú???????????????Rails????????????????Linux??????????????????????????????豸??????ò????????????????????????????Linux?????????????14??Linux?????7??????????????????? - ?洢?豸????????????????й???????Щ????????????????????Fuchsia??????б????iOS??????????????????? ???????????????????Linux????????AES??????????????α??????Linux??????????裺?????????????????????????????????????TmaxOS??????????iOS??Windows??????/WP???????????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????