09-14-2001
Is a simple one command to find a file?
Hi All,
I have did a search in the whole forum about Find, but get too many results, so I hope my message not annoying anyone.
How do I do a find for a specific file in the whole machine?
I am hoping for something like this.
find . -name
thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
given a start directory,a filename,how to find it? (3 Replies)
Discussion started by: bluo
3 Replies
2. UNIX for Advanced & Expert Users
how can i get the find command to display the filename without the path.
example:
find /tmp/test
/tmp/test1
/tmp/test2
/tmp/test3
should return
test1
test2
test3
i'm using bash.
also, whats the best way to ignore the . and .. directories? (5 Replies)
Discussion started by: kuliksco
5 Replies
3. UNIX for Dummies Questions & Answers
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
4. Shell Programming and Scripting
Im trying to make a very simple find the first file with the .zip extension in a specific folder and open that file.
The folder path and file name will vary every-time and it may contain spaces. If I try to look
For this example the folder directory is /Users/username/Desktop/testfolder/abc... (6 Replies)
Discussion started by: elbombillo
6 Replies
5. Linux
Hi,
I'm using the following command to find the multiple requierd file types and its working fine
find . -name "*.pl" -o -name "*.pm" -o -name "*.sql" -o -name "*.so" -o -name "*.sh" -o -name "*.java" -o -name "*.class" -o -name "*.jar" -o -name "*.gz" -o -name "*.Z" -type f
Though... (2 Replies)
Discussion started by: vickramshetty
2 Replies
6. Shell Programming and Scripting
Hi all ,
I'm new to unix
I have a checked project , there exists a file called xxx.config .
now my task is to find all the files in the checked out project which references to this xxx.config file.
how do i use grep or find command . (2 Replies)
Discussion started by: Gangam
2 Replies
7. Shell Programming and Scripting
Hi,
I want find multiple string in one file using find coomand.
And keeping it in one variable.grep is not working. (5 Replies)
Discussion started by: vivek1489
5 Replies
8. Shell Programming and Scripting
Hi,
As a newbie, I'm desperate ro make my shell script work. I'd like a script which checks all the files in a directory, check the file name, if the file name ends with "extracted", store it in a variable, if it has a suffix of ".roi" stores in another variable. I'm going to use these two... (3 Replies)
Discussion started by: armando110
3 Replies
9. Shell Programming and Scripting
find . -type fl
o/p is only the ordinary file. where in it wont give the link files. (2 Replies)
Discussion started by: nikhil jain
2 Replies
10. Shell Programming and Scripting
Hello guys, im new to to unix/linux
i have a text file like this:
person1@test.com iisiiasasas
person2@test.com 123w2 3233
sajsja person3@test.com jsajjsa
sajsjasaj person4@test.com
I want to extract only e-mail address and get rid of all other stuff, i want an output like this
... (4 Replies)
Discussion started by: RazorMX
4 Replies
LEARN ABOUT DEBIAN
condor_findhost
condor_findhost(1) General Commands Manual condor_findhost(1)
Name
condor_findhost find - machine(s) in the pool that can be used with minimal impact on currently running Condor jobs and best meet any spec-
ified constraints
Synopsis
condor_findhost [-help] [-m] [-n num] [-c c_expr] [-r r_expr] [-p centralmanagerhostname]
Description
condor_findhostsearches a Condor pool of machines for the best machine or machines that will have the minimum impact on running Condor jobs
if the machine or machines are taken out of the pool. The search may be limited to the machine or machines that match a set of constraints
and rank expression.
condor_findhostreturns a fully-qualified domain name for each machine. The search is limited (constrained) to a specific set of machines
using the -coption. The search can use the -roption for rank, the criterion used for selecting a machine or machines from the constrained
list.
Options
-help
Display usage information and exit
-m
Only search for entire machines. Slots within an entire machine are not considered.
-n num
Find and list up to nummachines that fulfill the specification. numis an integer greater than zero.
-c c_expr
Constrain the search to only consider machines that result from the evaluation of c_expr. c_expris a ClassAd expression.
-r r_expr
r_expris the rank expression evaluated to use as a basis for machine selection. r_expris a ClassAd expression.
-p centralmanagerhostname
Specify the pool to be searched by giving the central manager's host name. Without this option, the current pool is searched.
General Remarks
condor_findhostis used to locate a machine within a pool that can be taken out of the pool with the least disturbance of the pool.
An administrator should set preemption requirements for the Condor pool. The expression
(Interactive =?= TRUE )
will let condor_findhostknow that it can claim a machine even if Condor would not normally preempt a job running on that machine.
Exit Status
The exit status of condor_findhostis zero on success. If not able to identify as many machines as requested, it returns one more than the
number of machines identified. For example, if 8 machines are requested, and condor_findhostonly locates 6, the exit status will be 7. If
not able to locate any machines, or an error is encountered, condor_findhostwill return the value 1.
Examples
To find and list four machines, preferring those with the highest mips (on Drystone benchmark) rating:
condor_findhost -n 4 -r "mips"
To find and list 24 machines, considering only those where the kflops attribute is not defined:
condor_findhost -n 24 -c "kflops=?=undefined"
Author
Condor Team, University of Wisconsin-Madison
Copyright
Copyright (C) 1990-2012 Condor Team, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI. All Rights Reserved.
Licensed under the Apache License, Version 2.0.
See the Condor Version 7.8.2 Manualor http://www.condorproject.org/licensefor additional notices.
condor-admin@cs.wisc.edu
September 2012 condor_findhost(1)