Results 1 to 1 of 1
-
4th Apr 2014, 01:43 PM #1
Linux/Unix: Find Command Ignore Case Insensitive Search
Tutorial details Difficulty Easy (rss) Root privileges No Requirements None Estimated completion time 1m
The find command recursively descends the directory tree for each path provided, evaluating an expression. It is mainly used to search files and directories on Linux and Unix-like systems. The syntax is as follows to search files according to given criteria. You can search for files by name, owner, group, type, permissions, date, and other criteria:find dir-to-look criteria what-to-do
find [options] dir-to-look criteria what-to-do
find $HOME -name "hello.c" -print
/Users/vivek/Downloads/hello.c
/Users/vivek/hello.c
find $HOME -iname "hello.c" -print
/Users/vivek/Downloads/hello.c
/Users/vivek/Downloads/Y/Hello.C
/Users/vivek/Downloads/Z/HELLO.c
/Users/vivek/hello.c
find /dir/to/search -type f -iname "fooBar.conf.sample" -print
find $HOME -type f -iname "fooBar.conf.sample" -print
The -iname works either on GNU or BSD (including OS X) version find command. If your version of find command does not supports -iname, try the following syntax using grep command:
find $HOME | grep -i "hello.c"
find $HOME -name "*" -print | grep -i "hello.c"
find $HOME -name '[hH][eE][lL][lL][oO].[cC]' -print
/Users/vivek/Downloads/Z/HELLO.C
/Users/vivek/Downloads/Z/HEllO.c
/Users/vivek/Downloads/hello.c
/Users/vivek/hello.cGarryField Reviewed by GarryField on . Linux/Unix: Find Command Ignore Case Insensitive Search http://www.besthostingforums.com/images/cdn/besthostingforums.com/2014/04/unixlogo-1.gif Tutorial details Difficulty Rating: 5Follow Board Rules & Thread Rules.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Simple command for turn off linux server
By rahulkv in forum IntroductionsReplies: 0Last Post: 21st Jan 2012, 09:52 AM -
Search and You will Find!
By arko66 in forum Hosting DiscussionReplies: 0Last Post: 29th Jan 2010, 03:55 PM -
[off-topic] In need of a VALID Linux/UNIX VNC License for Ubuntu.
By DXS in forum General DiscussionReplies: 2Last Post: 11th Jan 2010, 11:15 PM -
where i can find this search engine ?
By Tigger in forum General DiscussionReplies: 2Last Post: 22nd Oct 2009, 03:37 AM -
need shell command to search and delete
By vgnheart in forum Server ManagementReplies: 2Last Post: 10th Jun 2009, 06:05 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...