when using Find, just write the desired action in a file, you can use the exec to match the Find lookup, very convenient
(In some operating systems only the-e x E C option is allowed to execute commands such as L s or ls-l). Most users use
Each operating system is composed of thousands of different types of files. There are system files, user files, shared files, and so on. Sometimes we often forget where a file is stored on the hard disk. Searching for a file in Microsoft's Windows
Source: Wu Qin (Tyler)Link: cnblogs.com/skynet/archive/2010/12/25/1916873.html
Working under Linux, some commands can greatly improve efficiency. This article to introduce you to find, grep command, his brother can be regarded as a mandatory Linux
The Find command is one of the most commonly used commands under Linux, with the flexibility to use the Find command, and you'll find it easy to find files.Command formatFind [Specify Find directory] [find rules (options)] [actions performed after
Find Introduction to Commands: Real-time, accurate, and support for many search criteriaTraverse all files in the specified directory to complete the lookup, slow;1 . Command format:Locate filename directly with the file you need to find eg
Original: fhqdddddd.blog.163.com/blog/static/186991542012417105729415/Find1. RoleThe function of the Find command is to search the directory for a file, and its use rights are for all users.2. FormatFind [Path][options][expression]path Specifies the
Find best application find path-option [-print] [-exec-OK command] {}\;-print outputs the searched files to the standard output-exec command {}\; execute the command operation on the retrieved file. The space between {} And \; is the same as that
Find command options-name Search by file name-type find a type of file (b for device block; d directory; C character device file; L sign (soft) link file; F normal file)-size find file length or size-prune exclude current folder when locating files,
Original link http://www.cnblogs.com/daizhuacai/p/3339389.htmlWorking under Linux, some commands can be much more efficient. This article will introduce you to the Find, grep command,His brother can be a must-have Linux command, I use them almost
Article Title: file search methods in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Each operating
4.findThe Linux Find command searches the directory structure for files and performs the specified actions. The Linux Find command provides quite a lot of search criteria and is powerful. Because find has powerful features, it has a lot of options,
Find a sub list in listAssuming that there are several rows of records in the database, the newLISP MySQL module returns the result is a list representing this number of rows of records, and then each element is a list, which contains a row of
Find command syntax: find search path matching expression function: this command is used to find files that meet the conditions in a specified path. The search path can be multiple directories, different directories are separated by spaces (1)
Article title: Shell basics: Chapter 2 use find and xargs. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open
Parameters of the find command;
Pathname: directory path searched by the find command. For example, use "." To represent the current directory, and use "/" to represent the root directory of the system.
-Print: The find command outputs matching
The following is a complementary part of the video course, and to learn more about Linux commands, you can learn from the following links:Http://edu.51cto.com/course/13070.htmlBy file name Lookup method:This method is as easy to understand as
This article describes in detail some common parameters and examples of the find command in linux, as well as some specific usage and precautions. if you need it, refer to the "LinuxFind" tab.
1. use the name option:The file name option is the most
Each operating system is composed of thousands of different types of files. There are system files, user files, shared files, and so on. Sometimes we often forget where a file is stored on the hard disk. Searching for a file in Microsoft's Windows
Xargs:
Find-type f-name "*.UNL" | Xargs awk-f "|" ' {if ($1== "221") {print $ > ' log/' FILENAME} '
When you use the-e x E c option of the f i n d command to process a matching file, the Find command passes all matching files to E x e C for
1. Introduction of the command:The Find command is used to locate files under the specified directory. Any string that precedes the parameter will be treated as the name of the directory you want to find. If you use this command without setting any
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.