File Lookup and compression1. Using the Locate command2. Using the Find command3. Compression and decompression toolsThe locate and find commands are commonly used to find matching files on a file system, and locate is a non-real-time lookup
Features:Searches for a file in the directory structure and performs the specified action. This command provides quite a few look-up conditions and is powerful.Syntax:Find start directory looking for conditional actionsDescription:The Find command
: Nth-child (index/even/odd/equation) matches the nth child or parity element ': eq (index)' under the parent element to only match one element, this will match the child element for each parent element. : Nth-child starts from 1, while: eq () is
1. grep: global search Regular Expression and print out the line.
The text search tool performs a row-by-row search on the target file based on the user-specified text mode to display the rows that can be matched by the mode.
Format: grep [Option]
Chapter One search for labels1.1 Direct LookupDirect lookup labels can be divided into three types:(1) Find according to the name of the class. This method is used in a more extensive one, using the method: Document.getelementsbyclassname ("name"),
One: Locate commandThe Locate command is used to find a file that is faster than the search command, and it requires a database that is built by a daily routine work (crontab) program. Once we have established this database, we can easily search for
9. Other General antiseptic grammar
9.1, search all pages linked to a URL address
If you have a personal website, you'll probably want to know how many people have links to your site. and "link" syntax will enable you to achieve this goal
Find: Searching for files or directoriesExample: Find. -name ' *.jsp '-mtime-90//Find files modified in JSP suffix within 90 days of current directory-name: Search by name, support Glob wildcard *? [] and so on-iname: Ignore name case-empty: Find
People who have played Linux will know that there are really a lot of commands in Linux, but people who have played Linux have never bothered by the fact that Linux commands are so many, because we only need to master the commands we use most often.
Wei GongSecureCRTUname-aViSftpPartition,fsShell Kshell,bshellUser,groupIPTablesNumber of files, kernel parametersTail,less/var/log/messageCrontab ConfigurationPeople who have played Linux will know that there are really a lot of commands in Linux,
Source: http://blog.csdn.net/ljianhui/article/details/11100625People who have played Linux will know that there are really a lot of commands in Linux, but people who have played Linux have never bothered by the fact that Linux commands are so many,
Most people may search the data, will be the data they need to enter the search engine Google, Baidu, Yahoo search box, this method is feasible, but search
Much of the data is not what we need, and if you use the following methods it will save us a
Although each database is supported by SQL statements, each database has its own operation function supported by each database, which is a single-line function, and if you want to do database development, except to use SQL, is to learn more
Http://www.hanyu123.cn/html/c61/6790.htmlOne, check a column (or more than one column) of the duplicate values. (You can only find the value of the duplicate record, cannot find the whole record information)For example: Find Stuid,stuname duplicate
1. CD commandThis is a very basic, is also a common need to use the command, it is used to switch the current directory, its parameters are to switch to the path of the directory, can be an absolute path, can also be a relative path. Such as:
1. subquery Review Select select_listFrom tableWhere expr operator (select select_listFrom table );
Example 1: query the EMP table to display information about employees whose salaries are higher than the average salaries.
Select *From EMPWhere SAL>
For example:
In the current directory, find the file with the suffix. C containing the hello string:
Find.-Name "*. c" | xargs grep-h "hello"
Appendix: (transfer)
1. grep Introduction
Grep (Global Search Regular Expression (re) and print out the
Tar commandTAR-ZCVF small.tar.gz Small (directory name) (compressed)TAR-ZXVF small.tar.gz Small (directory name) (unzip) Find commandFind./-mtime 5-print (search within 5 days for file data)10M or more file data searched
Find [PATH] [option]
This article describes how to use BeautifulSoup of python to analyze relevant information about the html method. if you need it, refer to section 1) search tag:
Find (tagname) # directly search for a tag named tagname, for example, find ('head
How to easily remember JS Regular Expressions and JS Regular Expressions
Preface
A regular expression (regular expression) describes a string matching pattern, it can be used to check whether a string contains a seed string, replace matched
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.