How to find files whose case is unknown


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to find files whose case is unknown
# 1  
Old 04-09-2008
How to find files whose case is unknown

Hello experts,

can you kindly tell me how I can look for a file in unix whose name may contain upper or lowercase letters? E.g. If I know the file contains the name netcool but unsure if its NETCOOL or netcool?

Thanks Smilie
# 2  
Old 04-09-2008
one exampel:

Code:
find . | grep -i netcool

# 3  
Old 04-09-2008
Start with some like this:
Code:
find /path/to/search  -type f  -name "[Nn][Ee][Tt][Cc][Oo]*"

This User Gave Thanks to jim mcnamara For This Post:
# 4  
Old 04-11-2008
Thanks.. that works!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bulk find in UNIX at unknown dir location

Dear All, I have a file which is having a number my_file.csv 032001031 100509001 203001165 there are many more about 5000. I have a path in unix /my_path/my_loc/DEV/RPD10/CPD25/WFM/RK_WFM/OUT/*/ where i will have a file like CPD25_203001165.pdf CPD25_100509001.pdf... (4 Replies)
Discussion started by: yadavricky
4 Replies

2. UNIX for Dummies Questions & Answers

How to use wild cards to find files beginning with upper and lower case

Im trying to use wild cards to find files that start with either an upper or lower case letter e.g. list files that beginning with b or B, i also want to sort them by the time they were last modified. e.g latest file created first. At the moment i have the following code that ls -d... (3 Replies)
Discussion started by: parker4001
3 Replies

3. UNIX for Dummies Questions & Answers

cant find a soln for this case

i have a script that runs on a sparc processor when i moved it to an intell processor and trys to run it error : Inavlid argument i have the liberaries on the intel but nothing happened . please help me as fast as you can (1 Reply)
Discussion started by: teefa
1 Replies

4. UNIX for Dummies Questions & Answers

Using FIND with case insensitive search

I am using HP-Unix B.11.31. Question: How to do the case insensitive search using FIND? Example: I would like list the files with extension of *.SQL & *.sql. When I try with command find . -type f -name *.sql, it does not lists file with *.SQL. (5 Replies)
Discussion started by: Siva SQL
5 Replies

5. AIX

Unknown files in /tmp

I have a lot of files with the following names in /etc /tmp/<num>.mktcpip like /tmp/934030.mktcpip Anyone knows which process creates these files? (1 Reply)
Discussion started by: petervg
1 Replies

6. UNIX for Advanced & Expert Users

find iname is being case sensitive

Can someone please tell me why iname is being case sensitive with this? $ find /media -iname *load* 2>/dev/null /media/Part 2/stuff/Downloads /media/Part 1/Application Data/Mozilla/Firefox/Profiles/wnul4kj4.irc/chatzilla/downloads /media/Part 1/Bob_5-22-2010/Application... (5 Replies)
Discussion started by: cokedude
5 Replies

7. UNIX for Dummies Questions & Answers

Copy files from unknown sub-folder

Hi, I want to copy files from a unknown sub-folder to other sub-folder without copying the sub-folder. I tried the command: find . -name Results*.pdf | cp *.* /home/dario/Desktop/ but i always copy the subfolder. Can anybody help? (5 Replies)
Discussion started by: limadario
5 Replies

8. UNIX for Dummies Questions & Answers

find, mv and create unknown parent & subfolders

I searched the forum rather thoroughly but still could not find the answer. Hopefully the solution is right under my nose. Here what I need to do, move older data to a Archive folder that is 18 months old and older. I would like to use the following command, find departmentx/* -mtime 530... (5 Replies)
Discussion started by: cheeba
5 Replies

9. Shell Programming and Scripting

find files where text case is different

I need to search a directory for files that have certain text in the file name. I use the following command to do that successfully - find /abc/indicator -name '*midday*.ind' The problem is some file names are lower case, some mixed case and some upper case. Is there a way to do the find... (5 Replies)
Discussion started by: schipper
5 Replies
Login or Register to Ask a Question