Sponsored Content
Top Forums Shell Programming and Scripting how to find a file in UNIX without find command? Post 40874 by google on Wednesday 24th of September 2003 01:36:02 PM
Old 09-24-2003
This is a homework question! Has to be, why wouldnt you want to use the find command? By the book: Unix In A NutShell By O'Reilly. Great tool to have, seek your answer there. Or search the man pages using apropos or man -k
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

command find returned bash: /usr/bin/find: Argument list too long

Hello, I create a file touch 1201093003 fichcomp and inside a repertory (which hava a lot of files) I want to list all files created before this file : find *.* \! -maxdepth 1 - newer fichcomp but this command returned bash: /usr/bin/find: Argument list too long but i make a filter all... (1 Reply)
Discussion started by: yacsil
1 Replies

2. Shell Programming and Scripting

Little bit weired : Find files in UNIX w/o using find or where command

Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same. Thanks in advance. Regards Jatin Jain (10 Replies)
Discussion started by: jatin.jain
10 Replies

3. UNIX for Dummies Questions & Answers

Disk Usage in GB and Unix command to find the biggest file/folder

Hi All, Please help me out 1) Command to find the disk usage in GB. I know that du -k will give in kilobites. 2) How to find the Biggest file/folder in a given set of files/folders. Thanks in advance Regards, Manas (8 Replies)
Discussion started by: manas6
8 Replies

4. UNIX for Dummies Questions & Answers

unix find command

I need help with tweaking the unix find command. currently the find command searches all the directories under $div/users modified in the last 1 day. find $div/users -type d -mtime +1 I need this changed to find only subdirectories and sub-subdirectories modified in the last 1 day under... (1 Reply)
Discussion started by: mnnarendra
1 Replies

5. 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

6. 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

7. UNIX for Dummies Questions & Answers

unix find command

This command is intended to compare two drives to see if all files are identical, can some one please decode what it is doing. find / -path /proc -prune -o -path /new-disk -prune -o -xtype f -exec cmp {} /new-disk{} \; (2 Replies)
Discussion started by: Tirmazi
2 Replies

8. 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

9. 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

10. 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
Commands Reference, Volume 1, a - c

apropos_Command

  Purpose

   Locates commands by keyword lookup.

  Syntax

   apropos [ -M PathName ] Keyword ...

  Description

   The apropos command shows the manual sections that contain any
of the
   keywords specified by the Keyword parameter	in  their  title.
The apropos
   command  considers each word separately and does not take into
account if a
   letter is in uppercase or lowercase. Words that  are  part  of
other words
   are	also  displayed.  For  example, when looking for the word
compile, the
   apropos command also finds all instances of the word compiler.
The
   database  containing  the  keywords	is /usr/share/man/whatis,
which must
   first be generated with the catman -w command.

   If the output of the apropos command begins with  a	name  and
section
   number,  you  can enter man Section Title. For example, if the
output of the
   apropos command is printf(3), you can enter man  3  printf  to
obtain the
   manual page on the printf subroutine.

   The	apropos  command  is  equivalent to using the man command
with the -k
   option.

     Note: When the /usr/share/man/whatis database is built  from
the HTML
     library using the catman -w command, section 3 is equivalent
to section
     2 or 3. See the man command for further explanation of  sec-
tions.

  Flag

	       Specifies  an  alternative search path. The search
path is
   -M PathName specified by the  PathName  parameter,  and  is	a
colon-separated
	       list of directories.

  Examples

    1. To find the manual sections that contain the word password
in their
       titles, enter:

	 apropos password

    2. To find the manual sections that contain the  word  editor
in their
       titles, enter:

	 apropos editor

  File

   /usr/share/man/whatis	      Contains	the  whatis data-
base.

  Related Information

   The catman command, man command, whatis command.

________________________________________________________________________________

		      Commands Reference, Volume 1, a - c

apropos_Command

  Purpose

   Locates commands by keyword lookup.

  Syntax

   apropos [ -M PathName ] Keyword ...

  Description

   The apropos command shows the manual sections that contain any
of the
   keywords specified by the Keyword parameter	in  their  title.
The apropos
   command  considers each word separately and does not take into
account if a
   letter is in uppercase or lowercase. Words that  are  part  of
other words
   are	also  displayed.  For  example, when looking for the word
compile, the
   apropos command also finds all instances of the word compiler.
The
   database  containing  the  keywords	is /usr/share/man/whatis,
which must
   first be generated with the catman -w command.

   If the output of the apropos command begins with  a	name  and
section
   number,  you  can enter man Section Title. For example, if the
output of the
   apropos command is printf(3), you can enter man  3  printf  to
obtain the
   manual page on the printf subroutine.

   The	apropos  command  is  equivalent to using the man command
with the -k
   option.

     Note: When the /usr/share/man/whatis database is built  from
the HTML
     library using the catman -w command, section 3 is equivalent
to section
     2 or 3. See the man command for further explanation of  sec-
tions.

  Flag

	       Specifies  an  alternative search path. The search
path is
   -M PathName specified by the  PathName  parameter,  and  is	a
colon-separated
	       list of directories.

  Examples

    1. To find the manual sections that contain the word password
in their
       titles, enter:

	 apropos password

    2. To find the manual sections that contain the  word  editor
in their
       titles, enter:

	 apropos editor

  File

   /usr/share/man/whatis	      Contains	the  whatis data-
base.

  Related Information

   The catman command, man command, whatis command.
All times are GMT -4. The time now is 10:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy