Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to find a file named vijay in a directory using find command Post 302094167 by ravikirankethe on Wednesday 25th of October 2006 05:39:59 PM
Old 10-25-2006
Might be.. but in anycase, the result shd come fast.
Try searching the file in the opt folder first and see how much time
it is taking .
Command: ls -l vijay

If you are able to get the folder then come back to the parent folder
and give the follwing command
find opt/ -name vijay

If it taking the same amount of time, then as you said it might be
the overhead if not there is a problem of permission.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

using find command only in current directory

I am trying to use the find command to find files in the current directory that meet a certain date criteria. find . -type -f -mtime +2 However, the above also checks the directories below. I tried -prune, but that seems to ignore this directory completely. I read about using -path w/... (5 Replies)
Discussion started by: jliebling
5 Replies

2. Shell Programming and Scripting

how to find a file in UNIX without find command?

given a start directory,a filename,how to find it? (3 Replies)
Discussion started by: bluo
3 Replies

3. UNIX for Dummies Questions & Answers

how to use sed or perl command to find and replace a directory in a file

how to use sed command to find and replace a directory i have a file.. which contains lot of paths ... for eg.. file contains.. /usr/kk/rr/12345/1 /usr/kk/rr/12345/2 /usr/kk/rr/12345/3 /usr/kk/rr/12345/4 /usr/kk/rr/12345/5 /usr/kk/rr/12345/6 /usr/kk/rr/12345/7... (1 Reply)
Discussion started by: wip_vasikaran
1 Replies

4. Linux

Simplified find command to find multiple file types

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

5. Shell Programming and Scripting

How to use grep & find command to find references to a particular file

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

6. Shell Programming and Scripting

Find multiple string in one file using find command

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

7. Shell Programming and Scripting

wanted to find both link file and ordinary file using single find command

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

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 Command Include Sub Directory

This script writes the output files to FILES but I don't want to exclude all directories from ABC_CHQ and LYS_ADV, I want to include one sub directory name process which is under ABC_CHQ and LYS_ADV in the search. Right now its excluding everything from prune directories such as ABC_CHQ, LYS_ADV... (10 Replies)
Discussion started by: John William
10 Replies

10. Shell Programming and Scripting

How-To Exclude Directory in find command

How can i tweak the below find command to exclude directory/s -> "/tmp/logs" find . -type f \( ! -name "*.log*" ! -name "*.jar*" \) -printNote: -path option/argument does not work with the version of find that i have. bash-3.2$ uname -a SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v (7 Replies)
Discussion started by: mohtashims
7 Replies
whom(1) 						      General Commands Manual							   whom(1)

NAME
whom - report to whom a message is addressed (only available within the message handling system, mh) SYNOPSIS
whom [options] [file] OPTIONS
Specifies the alias file to be consulted by whom. If you have used one or more aliases in your message header, whom will consult the named file to find those aliases, and will print the full addresses as its output. You can reference more than one file, but each file name must be preceded by the word -alias. See mh-alias(4) for more information. Checks that the addresses are valid. whom makes no guarantees that the addresses listed as being correct are really deliverable: rather, an address being listed as correct means that at the time that whom was run, the address was thought to be deliverable by the transport service. For local addresses, this means that the local user does exist, and that the address was deliverable at the time of checking. For network and uucp addresses, it means that the syntax of the address is valid. Sets the draft message to be the standard file draft in your Mail directory. Specifies the folder in which whom searches for the draft message. The default is to use the current message in the named folder. You can select another message by using the -draftmessage option. For more information on using a draft folder, see comp(1). The -draftfolder option is often set up in your user pro- file; see mh_profile(4) for more information. Specifies the draft message to be used. If you specify a folder with the -draftfolder option, the -draftmessage option takes the number of a message in that folder. If you do not specify a folder, -draftmessage takes the name of a file. If you do not give an absolute pathname (one beginning with a / or or ), -draftmessage assumes that the file is located in your Mail directory. Prints a list of the valid options to this command. Specifies the format of the addresses to be checked. The only value allowed is smtp, which checks that addresses are deliverable over the standard mail system. Additional values are supported only for use with other mail systems. The defaults for this command are: file defaults to <mh-dir>/draft -nocheck -alias /usr/lib/mh/MailAliases -mts smtp DESCRIPTION
The whom command is used to expand the headers of a message into a set of addresses, and optionally to verify that those addresses are deliverable at that time if -check is given. The whom command is often invoked as one of the options offered by the whatnow program when you have finished editing a draft message. See whatnow(1) for more details. If you want to run whom on a named file, you can supply a file argument. This argument allows you to specify a named file; if you want to run whom on an existing message, use the -draftfolder and -draftmessage options. If you do not give an absolute pathname (one beginning with a / or or ), whom assumes that the named file is in your current working directory. RESTRICTIONS
For this version, the -mts option only supports the value smtp. Additional values are supported for use only with other mail systems. PROFILE COMPONENTS
Path: To determine your MH directory (mh-dir) Draft-Folder: To find the default draft-folder postproc: Program to post the message EXAMPLES
In the following example, whom would use the current message in the +drafts folder: % whom -draftfolder +drafts smith: address OK In the next example, whom searches for message 2 in the folder +drafts: % whom -draftfolder +drafts -draftmessage 2 davis@hostname: address OK FILES
The user profile. SEE ALSO
comp(1), mh-alias(4), post(8) whom(1)
All times are GMT -4. The time now is 12:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy