Example: Delete/home/raven, including all files named Abc.txt in subdirectories:Find/home/raven-name Abc.txt | Xargs RM-RFIf Xargs is not used, then:Find/home/raven-name abc.txt-exec RM-FV {};Preface: About the Find commandBecause find has powerful
I thought it was almost enough for the past. Hehe, see a lot of masters with high skills, the heart itch feel I can also improve AH. hahaha.After this practice, Sed,awk also have to deepen,,, Shell and Python, for the operation of the two can not be
Find Command1.1. Find command Options-name Search by file name-perm Follow file permissions to find-prune can use the Find command to exclude the current folder and not find-user can be found according to the owner of the file-group can be found in
Differences between test, exec, and match in regular expressions and the use of parentheses, execmatch
Simple differences between test, exec, and match
1. test
Test returns a Boolean value to check whether the corresponding string contains a
objective of this section: exec replaces the process image of the EXEC Association function Group (EXECL, EXECLP, Execle, EXECV, EXECVP) One, exec replaces the process image on the process creation Unix takes a unique approach, It separates the
The exec () method of the JavaScript RegExp object is used to match the string, and its behavior is somewhat different from match ().For Regexpobject.exec (), W3school is described above:
The exec () method is powerful, is a common method,
[Linux & Unix -- exec and fock System Call], linux operating system
If you have any shortcomings, please kindly advise. Reprinted Please note: @ CSU-Max
Series of blog posts:
Linux and Unix -- file descriptors and permissions
The second bullet
Conclusion: zhy2111314 is from linuxsir. org sorting: Summary of North South and North South: This article is a detailed description of the find command, valuable is to give a lot of examples for parameters, a large number of examples, so that
What is the difference between exec and xargs? Both of them execute the Linux commands given to the files that meet the requirements without asking whether the user needsRun this command. Www.2cto.com-exec :{} indicates that the command parameter is
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.