![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to find files whose case is unknown | mitkapadia | UNIX for Dummies Questions & Answers | 3 | 04-11-2008 05:55 AM |
| How to find a text in jar and zip files.?? | redlotus72 | UNIX for Dummies Questions & Answers | 1 | 03-07-2006 08:29 AM |
| text files, ASCII files, binary files and ftp transfers | Perderabo | Answers to Frequently Asked Questions | 0 | 04-08-2004 04:25 PM |
| grep multiple text files in folder into 1 text file? | coppertone | UNIX for Dummies Questions & Answers | 7 | 08-23-2002 02:50 PM |
| Find files containing text | sushrut | UNIX for Dummies Questions & Answers | 5 | 11-16-2001 10:28 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 so case doesn't matter? Also, I need perform some processing if I find files with certain text, otherwise I do other processing. Does the find command return a value that I can use for conditional processing? Thanks for any help! |
|
||||
|
I need to perform something like the following
if there is a file with midday in the name perform the following commands else perform these commands end if Using the following command - find /home/m088267 -print | grep -i '.*midday.*\.ind' to check for certain files, how do I code the if statement to know what processing to do? Thanks for the help! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|