To perform a case-insensitive search with the Unix/Linux find command, use the-inameoption instead of-name. For example, if you want to search for all files and directories namedfoo,FOO, or any other combination of uppercase and lowercase characters beneath the current directory, use this co...
To perform a case-insensitive search operation for all the files in the root directory and its subdirectories whose filename contains the stringmainand the extension is of any length that ends with the alphabeto, enter the following command: find / -iname "*main*.*o" The search result of...
(see http://alvinalexander.com/mac-os-x/mac-backup-filename-directories-space...) locate command --- locate tomcat.sh # search the entire filesystem for 'tomcat.sh' (uses the locate database) locate -i spring.jar # case-insensitive search find and pax (instead of xargs and tar) --...
The following command will do the same thing. In either case, you need to escape the wildcard character to be sure it passes to the find command and is not interpreted by the shell. So, put your search string in quotes, or precede it with a backslash: find . -name \*.java Although...
/home/sara/Documents. Represents the directory where the search begins. Thefindcommand recursively searches through this directory and its subdirectories. -type f. Restricts the search to regular files only. -exec. Allows you to execute a command on each file thatfindmatches. In this case, it ...
2Searched file not found or invalid command line switch was given Remarks If you don't use/i, this command searches for exactly what you specify forstring. For example, this command treats the charactersaandAdifferently. If you use/i, however, the search becomes case insensitive, and it tre...
Like -path, but the match is case insensitive. -iregex pattern Like -regex, but the match is case insensitive. -is_setfa_D File has had its directio set using the setfa -D command. For more information on the setfa -D command, see the setfa (1) man page. -is_setfa_g ...
locate command --- locate tomcat.sh # search the entire filesystemfor'tomcat.sh' (uses the locate database) locate -i spring.jar #case-insensitive search find and pax (instead of xargs and tar) --- find . -type f -name"*html" | xargs tar cvf jw-htmlfiles.tar -...
This find search performs initially a case insensitive search for all the ogg files in your $HOME directory and for every true results it then searches for those with a size of 20 megabytes and over. This contains and implied operator which could be written joined with an -a. This search ...
Case-insensitive replacement When you want to substitute text regardless that if it is in uppercase or lowercase, in that case (haha) you should use theiflag in the substitute command. :%s/hello/HI/gi Copy If you notice, all occurrences of 'hello' or 'Hello' and even 'hELLO' are repl...