![]() You can use multiple wildcards in the “find” command to match more complex patterns. The “*.txt” expression uses the asterisk wildcard to match any string of characters followed by the “.txt” extension.įor another example, to find all the directories and subdirectories, use wildcards at beginning and end of the directory name: find -name "*tuts*" Using Multiple Wildcards in the “find” Command In this command, the “.” specifies the current directory, and the “-name” option specifies that we want to match filenames based on their name. The “find” command supports the use of wildcards to match filenames.įor example, if you find all files with the extension “.txt” in the current directory and its subdirectories, you can use the following command: find.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |