??????????????????8??Linux????
???????????? ???????[ 2012/9/17 9:55:52 ] ????????
????grep
????grep?? egrep?? fgrep – ????????????????????
???????????????Patterns of Enterprise Architecture??????????????????grep????????????????????Patterns??????????
jfields$ cat order.* | sort | grep Patterns
8:22:19 111?? 1?? Patterns of Enterprise Architecture?? Kindle edition?? 39.99
8:24:19 113?? -1?? Patterns of Enterprise Architecture?? Kindle edition??
?????????????113?????Щ?????????????????????——??????????grep???
jfields$ cat order.* | sort | grep ":dd 113?? "
8:24:19 113?? -1?? Patterns of Enterprise Architecture?? Kindle edition?? 39.99
8:24:20 113?? Refund sent to processing
???????????grep????????????“113”?????Щ??????????????????113??????????????????????????????????????????????????????????????
???????????????????????????????????????????????????????????????????Patterns of Enterprise Architecture???????????????????????????????????????????г????????????κ??????
????cut
????cut – ?????????????????Щ????
??????????grep????????grep???????????????С??????????????????????????????????г?С?Σ???????????????????
jfields$ cat order.* | sort | grep Patterns
8:22:19 111?? 1?? Patterns of Enterprise Architecture?? Kindle edition?? 39.99
8:24:19 113?? -1?? Patterns of Enterprise Architecture?? Kindle edition?? 39.99
jfields$ cat order.* | sort | grep Patterns | cut -d"??" -f2??5
1?? 39.99
-1?? 39.99
????????????????????????????????????????????Щ?????????Excel????????????????
????cut???????????????????????????????????????????????и????????????????????????????????ID?????????????????????????????????????cut??????ID????????????????ID????е?????????????
????sed
????sed – ???????????????????????????????л?????????任??
??????????????????????sed????任?????????У??????????????cut?????????????
jfields$ cat order.* | sort | grep Patterns
>| sed s/"[0-9:]* ([0-9]*)?? (.*)"/"2?? '1'"/
1?? Patterns of Enterprise Architecture?? Kindle edition?? 39.99?? '111'
-1?? Patterns of Enterprise Architecture?? Kindle edition?? 39.99?? '113'
lmp-jfields01:~ jfields$ cat order.* | sort | grep Patterns
>| sed s/"[0-9:]* ([0-9]*)?? (.*)"/"2?? '1'"/ | cut -d"??" -f1??4??5
1?? 39.99?? '111'
-1?? 39.99?? '113'
???????????????????????????????????????????????????????????????漸??????
?????? ???????
?????? ?????????
?????? ?????????????????
?????? ??????μ??????
???????????????б???е??????????????????????????Щ??
?????????????????????????????????????? 1 & 2 ???洢?????????????????????????????????????????м??????????????????????????????????????????????cut????????????????????
???????????????鷳???????????????????????log?????????????????????????????????????????????????????Щ?顣
??????
???·???
??????????????????
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