Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Directory find in small and capitals Post 6999 by PxT on Monday 17th of September 2001 01:57:18 PM
Old 09-17-2001
The "-iname" flag to find will do a case-insensitve match. (see find man page). So something like:

Code:
for i in `cat /maildir.dir` 
do 
	cd $i
	for j in `find . -iname backup -type d`
	do 
	  st="`find $j -name "[0-9]*" -type f -print|head -1|wc -l`"
  	  #other processing as necessary
	  cd /
	done
done

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to find a file named vijay in a directory using find command

I need to find whether there is a file named vijay is there or not in folder named "opt" .I tried "ls *|grep vijay" but it showed permission problem. so i need to use find command (6 Replies)
Discussion started by: amirthraj_12
6 Replies

2. UNIX for Dummies Questions & Answers

Script to find a string in a directory/sub-directory

I'm trying to find this string 'preparing string IBE_Quote_W1_Pvt.SaveWrapper for quote_header_id’ in my Apache log file directory. The log file that contains this string may be in a parent direcotry or a sub-directory. I have tried 'grep' and 'awk' with no success. I would like to get the path... (3 Replies)
Discussion started by: gross
3 Replies

3. Shell Programming and Scripting

[[HelloInCapitals]] to [[Hello In Capitals]]

Hello community, I got it all done except for one thing, ] or ] So now I want to split those in to ] or ] I am not so good at all this and get stuck with sed -e 's// &/g' -e 's/.../ &/g' -e 's/^ //g' infile (11 Replies)
Discussion started by: externalaw
11 Replies

4. Shell Programming and Scripting

Find Directory help

Hey All, New to Bash Scripting I have a find command to count the current directories it is: dirCount=`find $2/ -type d | wc -l` What I get is a count of all directories in $2 as well as $2 itself. What I need to do is ignore $2 itself and just get the folders inside $2. Thank in... (6 Replies)
Discussion started by: brandonpal
6 Replies

5. UNIX for Advanced & Expert Users

find directory help

I am looking for the directory ".Private". Can someone tell me why my first search does not work? ~ $ sudo find / -iname -type d ".Private" 2>/dev/null And why does this one work? ~ $ sudo find / -type d -iname '.Private' 2>/dev/null... (3 Replies)
Discussion started by: cokedude
3 Replies

6. Shell Programming and Scripting

Do not find the mistake in a small routine!!!

Have a textfile (regular updated) with informations about datafiles . Each line is describing a datafile. Now I am trying to delete several specific lines in this textfile, which are defined before in a kind of removal list. Can not find the mistake I have done in the script because in the... (5 Replies)
Discussion started by: jurgen
5 Replies

7. UNIX for Dummies Questions & Answers

"-maxdepth 1" argument for Solaris find. Other way to restrict find in only one directory?

Hi I wish to find only files in dir /srv/container/content/imz06/. It means exclude subfolder /srv/container/content/imz06/archive/ > uname -a SunOS testbox6 5.10 Generic_139555-08 sun4v sparc SUNW,Sun-Blade-T6320Its Solaris default "find" > find /srv/container/content/imz06/* -name... (4 Replies)
Discussion started by: slashdotweenie
4 Replies

8. Shell Programming and Scripting

Find every directory named XYZ under the DVLP directory

I only want to find files under each branch of the directory tree inside directories named XYZ and there are multiple XYZ directories? (7 Replies)
Discussion started by: emc^24sho
7 Replies

9. Shell Programming and Scripting

Find words containing small letters

Hello, I have a file containing different words. How can i print the words which contain at least one small letter, for example if i have: today TOMORROw 12345 123a next preViou5 no it should print the following: today TOMORROw 123a next preViou5 no Please use code tags as required... (5 Replies)
Discussion started by: JhonTheNewbie
5 Replies

10. UNIX for Beginners Questions & Answers

How to find and get a file in an entire directory with an excluded directory specified?

How to get a file 'zlib.h' in an entire directory with an excluded directory specified lives under that starting directory by using find command, as it failed on: $ find . -name 'zlib.h' -a -ipath 'CHROME.TMP' -prune -o -print it'll just list entirely up (2 Replies)
Discussion started by: abdulbadii
2 Replies
MU-BOOKMARKS(5) 						File Formats Manual						   MU-BOOKMARKS(5)

NAME
bookmarks - file with bookmarks (shortcuts) for mu search expressions DESCRIPTION
Bookmarks are named shortcuts for search queries. They allow using a convenient name for often-used queries. The bookmarks are are also visible as shortcuts in the mu experimental user interfaces, mug and mug2. mu supports bookmarks stored in a file called bookmarks in the mu home directory (typically, this would be ~/.mu/bookmarks). The bookmarks file is a typical key=value .ini-file, which is best shown by means of an example: [mu] inbox=maildir:/inbox # inbox oldhat=maildir:/archive subject:hat # archived with subject containing 'hat' The [mu] group header is required. For practical uses of bookmarks, see mu-find(1). LOCATION
The bookmarks file is read from <muhome>/bookmarks. Typically, this would be ~/.mu/bookmarks, but this can be influenced using the --muhome parameter for mu-find(1) and mug(1). AUTHOR
Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> SEE ALSO
mu(1) mu-find(1) User Manuals May 2011 MU-BOOKMARKS(5)
All times are GMT -4. The time now is 12:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy