8139 chip type ' rtl-8139c ' 249-input : PC Speaker as/class/input/input2250-acpi:pci Interrupt 0000:00:01.4[b]-Link [lnkb] ... 251-HDB:ATAPI 48X DVD-ROM dvd-r-ram cd-r/rw drive, 2048kB Cache, UDMA (66) # as shown above, you will find that the first two lines of the keyword 247 and 248 after three lines are also displayed! # This allows you to take the keyword back and forth data to analyze it!Finding a directory recursively based on file content# grep ' en
also displayed! # This allows you to take the keyword back and forth data to analyze it! 7. Finding directories recursively based on file contents # grep ' energywise ' * #在当前目录搜索带 ' energywise ' files # grep-r ' energywise ' * N Bsp #在当前目录及其子目录下搜索 ' energywise ' File # grep-l-R '
8139 chip type ' rtl-8139c ' 249-input : PC Speaker as/class/input/input2250-acpi:pci Interrupt 0000:00:01.4[b]-Link [lnkb] ... 251-HDB:ATAPI 48X DVD-ROM dvd-r-ram cd-r/rw drive, 2048kB Cache, UDMA (66) # as shown above, you will find that the first two lines of the keyword 247 and 248 after three lines are also displayed! # This allows you to take the keyword back and forth data to analyze it!Finding a directory recursively based on file content# grep ' en
the number of ' search strings ' found by-I: ignores case differences, so the case is treated as the same-N: by the way output line number-V: Invert selection, which shows the line without the ' search string ' content! --color=auto: Can be found in the keyword part of the color display Oh!
grep Find Directory
Finding a directory recursively based on file content
1, grep ' energywise ' * 2, grep-r '
:eth0:realtek RTL8139 at 0xee846000, 00:90:cc:a6:34:84, IRQ 10248:eth0:identified 8139 chip type ' rtl-8139c ' 249-input : PC Speaker as/class/input/input2250-acpi:pci Interrupt 0000:00:01.4[b]-Link [lnkb] ... 251-HDB:ATAPI 48X DVD-ROM dvd-r-ram cd-r/rw drive, 2048kB Cache, UDMA (66) # as shown above, you will find that the first two lines of the keyword 247 and 248 after three lines are also displayed! # This allows you to take the keyword back and forth data to analyze it!Finding a directory r
-acpi:pci Interrupt 0000:00:0e.0[a] Link [lnkb] ... 247:eth0:realtek RTL8139 at 0xee846000, 00:90:cc:a6:34:84, IRQ 10248:eth0:identified 8139 chip type ' rtl-8139c ' 249-input : PC Speaker as/class/input/input2250-acpi:pci Interrupt 0000:00:01.4[b]-Link [lnkb] ... 251-HDB:ATAPI 48X DVD-ROM dvd-r-ram cd-r/rw drive, 2048kB Cache, UDMA (66) # as shown above, you will find that the first two lines of the keyword 247 and 248 after three lines are also displayed! # This allows you to take the keyword
8139 chip type ' rtl-8139c ' 249-input : PC Speaker as/class/input/input2250-acpi:pci Interrupt 0000:00:01.4[b]-Link [lnkb] ... 251-HDB:ATAPI 48X DVD-ROM dvd-r-ram cd-r/rw drive, 2048kB Cache, UDMA (66) # as shown above, you will find that the first two lines of the keyword 247 and 248 after three lines are also displayed! # This allows you to take the keyword back and forth data to analyze it!Finding a directory recursively based on file content# grep ' en
lines after 248 are also displayed. # This allows you to capture the data before and after the keyword analysis. 7. Recursively find directories based on file content # grep ' energywise ' * #在当前目录搜索带 ' energywise ' line of files # grep-r ' energywise ' * #在当前目录及其子目录下搜索 ' energywise ' files
# grep-l-R '
the line without the ' search string ' content!--color=auto: Can be found in the keyword part of the color display Oh!Remove the/etc/passwd, where Root is present.# grep root/etc/passwd or # CAT/ETC/PASSWD | grep rootRemove the/etc/passwd, which is the root row, and display the line numbers of the rows in/etc/passwd# grep-n ROOT/ETC/PASSWDin terms of the display of keywords, grep can use--color=auto to display the keyword portion using color. The/etc/passwd will be removed and no root and Nolog
working directory.ClearThis command is used to clear the screen, it does not require any parametersGrepUsed to find which line in a file matches a string.Parameter description: Such as. Display lines containing St, and their line numbersWill not appear to show the ST'sFinding a directory recursively based on file content# grep ' energywise ' * #在当前目录搜索带 ' energywise ' line file # grep-r '
8139 chip type ' rtl-8139c ' 249-input : PC Speaker as/class/input/input2250-acpi:pci Interrupt 0000:00:01.4[b]-Link [lnkb] ... 251-HDB:ATAPI 48X DVD-ROM dvd-r-ram cd-r/rw drive, 2048kB Cache, UDMA (66) # as shown above, you will find that the first two lines of the keyword 247 and 248 after three lines are also displayed! # This allows you to take the keyword back and forth data to analyze it!Finding a directory recursively based on file content# grep ' en
8139 chip type ' rtl-8139c ' 249-input : PC Speaker as/class/input/input2250-acpi:pci Interrupt 0000:00:01.4[b]-Link [lnkb] ... 251-HDB:ATAPI 48X DVD-ROM dvd-r-ram cd-r/rw drive, 2048kB Cache, UDMA (66) # as shown above, you will find that the first two lines of the keyword 247 and 248 after three lines are also displayed! # This allows you to take the keyword back and forth data to analyze it!Finding a directory recursively based on file content# grep ' en
chip type ' rtl-8139c ' 249-input : PC Speaker as/class/input/input2250-acpi:pci Interrupt 0000:00:01.4[b]-Link [lnkb] ... 251-HDB:ATAPI 48X DVD-ROM dvd-r-ram cd-r/rw drive, 2048kB Cache, UDMA (66) # as shown above, you will find that the first two lines of the keyword 247 and 248 after three lines are also displayed! # This allows you to take the keyword back and forth data to analyze it!Finding a directory recursively based on file content# grep ' energyw
8139 chip type ' rtl-8139c ' 249-input : PC Speaker as/class/input/input2250-acpi:pci Interrupt 0000:00:01.4[b]-Link [lnkb] ... 251-HDB:ATAPI 48X DVD-ROM dvd-r-ram cd-r/rw drive, 2048kB Cache, UDMA (66) # as shown above, you will find that the first two lines of the keyword 247 and 248 after three lines are also displayed! # This allows you to take the keyword back and forth data to analyze it!Finding a directory recursively based on file content# grep ' en
:cc:a6:34:84, IRQ ten
248:eth0:identified 8139 chip type ' rtl-8139c '
249-INPUT:PC Speaker as/class/input/input2
250-acpi:pci Interrupt 0000:00:01.4[b]-> Link [lnkb] ...
251-HDB:ATAPI 48X DVD-ROM dvd-r-ram cd-r/rw drive, 2048kB Cache, UDMA
# as shown above, you will find that the first two lines of keyword 247 and three lines in 248 are also displayed.
# This allows you to capture the data before and after the keyword analysis.
Recursively find directories based on file content
#
increasingly important, which is also the reason why the cloud economy is hard to define ."
IT energy management technologies that must be mastered by network personnel
In addition to PoE, network providers are developing some technologies and establishing partnerships to help network administrators master IT energy management tools. Both Juniper and Cisco have established partnerships with JouleXr, a non-Agent Energy Management supplier, to monitor, analyze, and control the energy consumption
Data centers are full of electric mice, such as storage cabinets and server cabinets, but there are many products and services that can help you reduce the energy consumption of existing devices. To commemorate Earth Day (April 22), we particularly recommend 5 devices that can help the data center save energy and reduce consumption.
EnergyWise, a software installed on Cisco Catalyst switches and routers, monitors and measures the energy consumption o
] [-- version]Note: When executing the pwd command, you can immediately find the absolute path name of your current working directory.
Clear
This command is used to clear the screen without any parameters.
GrepUsed to find the line that matches the string in the file.Parameter description:
-A: Search for data using text files in binary files-c: count the number of times that 'searchstring' is found-I: case-insensitive, so the case is treated as the same-n: by the way, the output line number-v
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.