![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| #/usr/bin/csh -f not working as expected? | effigy | Shell Programming and Scripting | 4 | 06-05-2006 05:00 PM |
| Find command not working as expected | mpflug | UNIX for Dummies Questions & Answers | 2 | 02-09-2006 08:32 PM |
| Var substitution in awk - not working as expected | videsh77 | Shell Programming and Scripting | 3 | 01-13-2006 01:57 PM |
| ls not working as expected within ksh | GNMIKE | Shell Programming and Scripting | 10 | 07-07-2005 07:53 AM |
| which not working as expected | osee | Shell Programming and Scripting | 2 | 09-07-2004 11:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Find cmd not working as expected
Hi,
i wan to search the file starting with Admin into the directory Output. I am running below command: find /appl/Output -name "Admin*" -prune but this command is going into the sub directories present under output. I do not want to search under sub directories. Any help will be highly appreciated. Thanks!! |
|
||||
|
try -maxdepth as follows..
Code:
-maxdepth levels
Descend at most levels (a non-negative integer) levels of direc-
tories below the command line arguments. `-maxdepth 0' means
only apply the tests and actions to the command line arguments.
|
|
||||
|
-maxdepth option is not allowed
Thanks for ur quick reply. but -maxdepth option is not supported with my unix verison. I have version 5 of unix.
when i tried to run find /appl/Output -name "Admin*" -prune -maxdepth 0 it gave error saying "find: 0652-017 -maxdepth is not a valid option." Pls help. |
|
||||
|
either you can use--
ls -ltr /appl/Output/Admin* Thanks Namish |
| Sponsored Links | ||
|
|