Linux???????????????????
???????????? ???????[ 2013/6/17 10:17:05 ] ????????
???????????“???????”?????Щ???????????????????????????????????????????????
???????????Щ??????Quora?????Joshua Levy????????
?????? ???sort/uniq??????????????????????????????????a??b?????????????????????????????????????????Ч?????????????????κ???????????????????G?????????Sort??????????????????????? -T ????????????????????£??????????????Java?????????????????????????????д???
cat a b | sort | uniq > c # c ??a??b????
cat a b | sort | uniq -d > c # c ??a??b?????
cat a b b | sort | uniq -u > c # c ??a??b????
?????? ????????????????????????????????????????Python??????3???????1/3???????????
awk ‘{ x += $3 } END { print x }’ myfile
?????? ????????????????????????????????????????????????????????????”ls -l”????????????????????”ls -lR”???????
find . -type f -ls
?????? ???xargs?????????????????????????????????????????????С????????????????????У??????xargs echo???????-I{} ???????á??????
find . -name *.py | xargs grep some_function
cat hosts | xargs -I{} ssh root@{} hostname
?????? ??????????????????????????web??????????????Щ???????Щ???????URL?е?acct_id???????????????????acct_id??????????????
cat access.log | egrep -o ‘acct_id=[0-9]+’ | cut -d= -f2 | sort | uniq -c | sort -rn
??????
???·???
??????????????????
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