![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to find a file named vijay in a directory using find command | amirthraj_12 | UNIX for Dummies Questions & Answers | 6 | 10-25-2008 09:37 AM |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 05:12 PM |
| Little bit weired : Find files in UNIX w/o using find or where command | jatin.jain | Shell Programming and Scripting | 10 | 09-19-2007 03:47 AM |
| command find returned bash: /usr/bin/find: Argument list too long | yacsil | Shell Programming and Scripting | 1 | 12-15-2003 03:38 PM |
| how to find a file in UNIX without find command? | bluo | Shell Programming and Scripting | 3 | 09-24-2003 08:47 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
using find command
i want to find the file msk_Rco_ijkl_20070925_033743.Z
i am using the below command but it is returning with the below metioned error how to solve it find . -name 'msk_Rco_ijkl_*' -mtime -60 -print find: bad option msk_Rco_ijkl_20070925_033743.Z find: [-H | -L] path-list predicate-list |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
find . -name msk_Rco_ijkl_\* -mtime -60 -print |
|
#3
|
|||
|
|||
|
hi
i gave the command like u mentioned but i am getting things like find: bad option msk_Rco_ijkl_20070925_033743.Z find: [-H | -L] path-list predicate-list i want only the file name not other things how to do it |
|
#4
|
|||
|
|||
|
Try it without quotes:
Code:
find . -name msk_Rco_ijkl_* -mtime -60 -print |
|
#5
|
||||
|
||||
|
What the heck - it works for me with quotes, without quotes:
Code:
$ ls tmp/msk_Rco_ijkl_20070925_033743.Z tmp/msk_Rco_ijkl_20070925_033743.Z $ find . -name 'msk_Rco_ijkl_*' -mtime -60 -print ./tmp/msk_Rco_ijkl_20070925_033743.Z $ find . -name msk_Rco_ijkl_* -mtime -60 -print ./tmp/msk_Rco_ijkl_20070925_033743.Z Code:
$ find -z find: path-list predicate-list |
|
#6
|
|||
|
|||
|
i am just giving this thing
find . -name msk_Rco_ijkl_* -mtime -60 -print and i am getting find: bad option msk_Rco_ijkl_123.Z find: [-H | -L] path-list predicate-list |
|
#7
|
|||
|
|||
|
could you please tell us which OS, which version and which find you are using. Pls. put here the output of the folling commands:
# uname -a # which find bakunin |
|||
| Google The UNIX and Linux Forums |