??????????? Unix ????????????????????????????????????????????У???????????????????????е???????????“??????” —— ???????????С??????????????????????????????????鱨??
?????????????????????????£????????????????????????????????? —— ???????????????????????????:) ????????????????????????????е???????
????????????????
????????????????????grep ?????????????????????????????????grep ??????????????????????????????????????????????????????????????????????????????????????grep this that ????????“that”????а???“this”??????????С????? -w ???????????Щ????????“this”?????????С????仰?????????а???“thistle” ?? “erethism” ?????????????????Щ????? “this” ????????
???????? grep ?????????????????
????$ grep find poem
????finding meaning?? finding comfort??
????finding someone to adore
????Can we find a way to be
?????????????????????????? -w ???????
????$ grep -w find poem
????Can we find a way to be
?????????????????ɡ????????????????????????“find”??????У?????“find”?е?“f”???д????Сд??
????$ grep [Ff]ind poem
????Finding answers
????finding meaning?? finding comfort??
????finding someone to adore
????Can we find a way to be
??????????????????????????????У????????? ^????????? $????β????
????$ grep ^find poem
????finding meaning?? finding comfort??
????finding someone to adore
??????????????????????????????????????У??????????????????“AEIOUaeiou”?????
????$ grep -E "[AEIOUaeiou]{2}" poem | head -3
????All our days are filled with searching
????wondering what we're looking for
????finding meaning?? finding comfort??
??????????? 9 ?????? 10 ??????????????
????$ grep -E "[[:alpha:]]{9??10}" poem
????All our days are filled with searching
????wondering what we're looking for
????All our days are filled with searching
????that makes the searching more productive
??????????????? “find” ????????
????$ ann> grep -E "find[^[:space:]]+" poem
????finding meaning?? finding comfort??
????finding someone to adore
?????????е?????????????????裬????????????????????????????????????????????????л???????????????????????????????”processor”????????????????????饗??????к??????У??????????????Щ?????????????????? 9 ????飬?? -C 2 ??? -C 4 ???????
$ grep -C 2 processor /var/log/dmesg
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 88000000 (gap: 80000000:7ec00000)
Detected 3400.426 MHz processor.
Built 1 zonelists.  Total pages: 524275
Kernel command line: ro root=LABEL=/1
--
Inode-cache hash table entries: 65536 (order: 6?? 262144 bytes)
Memory: 2071140k/2097100k available (2223k kernel code?? 24616k reserved?? 922k data?? 232k init?? 1179596k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop (skipped)?? value calculated using timer frequency.. 6800.85 BogoMIPS (lpj=3400426)
Security Framework v1.0.0 initialized
--
CPU0: Intel(R) Xeon(TM) CPU 3.40GHz stepping 04
SMP alternatives: switching to SMP code
Booting processor 1/1 eip 11000
CPU 1 irqstacks?? hard=c0779000 soft=c0759000
Initializing CPU
#1
--
CPU1: Intel(R) Xeon(TM) CPU 3.40GHz stepping 04
SMP alternatives: switching to SMP code
Booting processor 2/6 eip 11000
CPU 2 irqstacks?? hard=c077a000 soft=c075a000
Initializing CPU
#2
--
CPU2: Intel(R) Xeon(TM) CPU 3.40GHz stepping 04
SMP alternatives: switching to SMP code
Booting processor 3/7 eip 11000
CPU 3 irqstacks?? hard=c077b000 soft=c075b000
Initializing CPU
#3