![]() |
|
|
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 |
| Possible to give sudo access to subdirectories? | LordJezo | UNIX for Dummies Questions & Answers | 3 | 03-26-2008 03:47 PM |
| Find all files created by a specified user in a directory and its subdirectories | abhilashnair | UNIX for Dummies Questions & Answers | 5 | 06-13-2007 03:37 AM |
| How to find a file in subdirectories? | ALon | UNIX for Dummies Questions & Answers | 3 | 01-20-2007 02:26 PM |
| find files with a perticular year of access | pradeepmacha | UNIX for Advanced & Expert Users | 3 | 07-12-2005 04:31 AM |
| Need help to access/mount so to access folder/files on a Remote System using Linux OS | S.Vishwanath | UNIX for Dummies Questions & Answers | 2 | 07-30-2001 09:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
find . but not access subdirectories
Hello,
I'm trying to figure out how to prevent this find command from accessing this diretories's subdirectories! I tried the maxdepth and prune but they don't seem to work on SUN. So now i'm trying to set up a nawk command to not process any files that have "REVISED" in there name: find . -name "???CQ???.TXT.out" | nawk ~/REVISED/ '{print $1}' Thanks very much for any help with the find or the nawk commands! BobK ![]() |
|
||||
|
well i have that same file name ???CQ???... in the parent and sub/child directories, so i want to prevent the child directory file names from being printed.
when i use the ~/REVISED/ it seems to me that should cause the /REVISED/ or child directories to not be printed, so what would the syntax then be to say: don't print any file name with /REVISED/ in it? Thanks BobK |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|