![]() The final \ tells find that the command is finished. ![]() The %s in the command is replaced with the name of the file, and the tells printf to add a newline after each file. name “*foo*” -exec printf “%s ” “” \ The -exec option tells the find command to execute the specified command (in this case, printf) on each file that it finds. For example, to find all files in the current directory that have the word “foo” in their name and enclose the output in double quotes, you would use the following command: find. This can be accomplished by using the find command with the – exec option. When working with the Linux command line, it is sometimes necessary to enclose the output of a command in double quotes.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |