02-13-2012
find all the dirs starting with particular name
Hi Experts,
I want to find all the dirs , subdirs on the sever which start with "sr".
Can anyone let me know command for the same.
find . -type d -name sr* I tried this but it is not working.
Thanks,
Ajay
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
My goal is to find all my 'man' dirs in my sw structure and from that create a windex db. I get many new software dirs every week soo I need to rebuild the windex db very often. I've started with this:
OS: Solaris 8
#!/bin/bash
find /sw/tools -type d -name 'man*' -print
... (3 Replies)
Discussion started by: tonlu
3 Replies
2. UNIX for Dummies Questions & Answers
Hey guys,
I would like to find all files which contain "client1.dat". I would like to search from the current directory and all subs and print out all the files that have this. Any help would be greatly appreciated.
Thanks much. (10 Replies)
Discussion started by: ecupirate1998
10 Replies
3. Shell Programming and Scripting
I have a directory which is /home/mark/files/ , inside this particular I have a bunch of filles (see examples below)
TST_SHU_00014460_20090302.txt
TST_SHU_00016047_20090302.txt
TST_SHU_00007838_20090303.txt
TST_SHU_00056485_20090303.txt
TST_SHU_00014460_20090303.txt... (2 Replies)
Discussion started by: fierusbentus
2 Replies
4. Shell Programming and Scripting
Hey all.. This should be simple but stoopid here can't get head around it! I have many directories, say 100 each with many files inside. I need a script to traverse through the dirs, find most recent file in each dir and add it to a tar file.
I can find the files with something like
for... (1 Reply)
Discussion started by: bobdung
1 Replies
5. Shell Programming and Scripting
I'm sure this has been asked before but I couldn't find it with the search. I have a script that looks for files and then moves to another location for further processing. My problem is I can't seem to prune the .s* directories. It doesn't break anything just wanted a cleaner process.
Here... (4 Replies)
Discussion started by: jcalisi
4 Replies
6. OS X (Apple)
Hi, i am asking a command to find a string in file(s) from multiple level directory structures.
help would be really appreciated. (4 Replies)
Discussion started by: ywu081006
4 Replies
7. Shell Programming and Scripting
I have a file called "INPUT" which takes the following format
MNT-BANK-NUMBERO:006,00:N
MNT-100-ACCOUNT-NUMBERO:018,00:N
MNT-1000-DESCRIPTIONO:045:C
.
.
.
Now i got to find the displacements of the account numbers of each field of a file.
For the field MNT-BANK-NUMBERO:006,00:N, the... (4 Replies)
Discussion started by: bobby1015
4 Replies
8. UNIX for Dummies Questions & Answers
I am trying to get a listing of ALL directories only under /export (as an example). I can get all the dirs directly under /export but I need any sub dirs under those dirs. I've looked (here and google) but can not find anything that works (4 Replies)
Discussion started by: bbraml
4 Replies
9. Shell Programming and Scripting
I have lots of directories in ~/.
My diaries are stored in directories in ~/ containing exactly 4 digits.
How do I use the /usr/bin/find command to only search my diary directories?
So I would like my search to include ~/2009/abc/def and ~/2010/2001/33 but not ~/103/ or ~/20101/ or ~/201/... (2 Replies)
Discussion started by: siegfried
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
My first time on this site, please excuse me if I've come to the wrong forum. I'm fairly new to Unix/Linux and hoping you can help me out.
I'm looking for a command line that will return a list of directories that are larger than 50M and older than 2 days.
I thought it may be... (6 Replies)
Discussion started by: Wisconsingal
6 Replies
LEARN ABOUT DEBIAN
svn-bisect
SVN-BISECT(1) General Commands Manual SVN-BISECT(1)
NAME
svn-bisect - Bisect Subversion revisions to find a regression
SYNOPSIS
svn-bisect start [good_rev [bad_rev]]
svn-bisect {good|bad} [rev]
svn-bisect run command
svn-bisect reset
svn-bisect status
DESCRIPTION
svn-bisect helps to automate finding a bug or behavior change in a Subversion working copy. Given an initial "good" revision, with the
desired or original behavior, and a newer "bad" revision, with the undesired or modified behavior, svn-bisect will do a binary search
through the revision range to find which revision caused the change.
svn-bisect must be initialized in a working copy, with svn-bisect start. It also needs to be given at least one good revision (the base-
line) and one bad revision (known modified behavior) revision.
Sub-commands:
start Initializes or reinitializes svn-bisect; optionally takes good and bad revision parameters.
good rev
bad rev
Tells svn-bisect that a revision is good or bad, defining or narrowing the search space. If not specified, revision defaults to the
current revision in the working copy. svn-bisect will then update to a revision halfway between the new good and bad boundaries.
If this update crosses a point where a branch was created, it switches in or out of the branch.
reset Resets the working copy to the revision and branch where svn-bisect start was run. In the simple case this is equivalent to rm -r
.svn-bisect; svn update, but not if it has crossed branches, and not if you did not start at the HEAD revision. In any case,
svn-bisect never keeps track of mixed-revision working copies, so do not use svn-bisect in a working copy that will need to be
restored to mixed revisions.
status Prints a brief status message.
run command
Runs the bisection in a loop. You must have already defined initial good and bad boundary conditions. Each iteration through the
loop runs command as a shell command (a single argument, quoted if necessary) on the chosen revision, then marks the revision as
good or bad, based on the exit status of command.
EXAMPLES
Assume you are trying to find which revision between 1250 and 1400 caused the make check command to fail.
svn-bisect start 1250 1400
svn-bisect run 'make check'
svn-bisect reset
ENVIRONMENT
SVN The Subversion command-line program to call (default svn).
FILES
.svn-bisect
The directory containing state information, removed after a successful bisection.
SEE ALSO
git-bisect(1).
AUTHOR
Written by Robert Millan and Peter Samuelson, for the Debian Project (but may be used by others).
2009-10-22 SVN-BISECT(1)