

Secondly, we replaced the period with to denote that after the letter a, no more slashes can appear. First, the tokens *\/ refer to any string that doesn’t contain any slash (*) followed by one slash ( \ / ) immediately before the filename that starts with the letter a. Two differences exist between the two last regexes. We can also search in the first level directory instead of the current directory with the command: $ find. type f -regex '\.\/a.*'įile a2 is not returned because the letter a is not followed by a 0 or a 1. The following command finds the files (with the -type f flag) that are in the current directory ( \.\/), that start with the letter a followed by either a 0 or a 1: $ find. This means that if looking in the current directory, the regular_expression should start with \.\/ (using the backslash to escape the special characters).
#FIND FILE WITH NAME LINUX FULL#
The regular_expression pattern includes the full filename, including the root path directory. With this command, the path is searched, and the files that comply with the regular_expression are returned.

* that, based on the previous discussion, will match zero or more occurrences of any character except a newline, meaning that it will match any string! 3. Two tokens frequently used in conjunction are.
