
These methods include pairing find with the primary -exec and pipelining output from find to the xargs command. In this project, we'll look at file-processing techniques that invoke other commands to process the files identified by find. Project 17 addresses the limited ability of the find command to process files named in such a list.

Sometimes this is all you want, but often you'll need to process either the list itself or each file named in the list. The find command generates a list of files that match the specified criteria. Project 17 focused on the use of find with additional search criteria, including file type and size time stamp for last access and modification times permissions including file owner, associated group, and specific permission settings and complex conditions that combine criteria using the AND, OR, and NOT operators. In Project 15, we explored the use of pattern matching with the locate and find commands for searches based on filenames and pathnames. This project examines techniques for processing files identified in a find search, building on concepts discussed in previous projects. It recursively searches an entire directory structure for files that match a given set of criteria.

Mac os x terminal filenames with spaces how to#
Project 17 shows how to find files by more complex criteria. Project 15 uses locate and find to search for files by name. It uses first the primary -exec and then the xargs command to process each file in the list. This project shows how to process the files returned by the findcommand.
