- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to traverse sub. dirs?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 10:38 AM
тАО08-15-2002 10:38 AM
Re: How to traverse sub. dirs?
well, how about using the feature of "find" to tell multiple starting directories?
Since that would be less than 49 if I read your posting correctly, you would go by with a single "find" command:
cd /u5/data
find tom* -exec net perms {} ";"
You could use any list or wildcard pattern you want!
If you don't like the subdirs starting with "m", that would be
find [^m]* -exec net perms {} ";"
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 11:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 11:29 AM
тАО08-15-2002 11:29 AM
Re: How to traverse sub. dirs?
"net perms c:/u5/data" so your answer fails when c: is added like so "find /u5/data -exec net perms c: {} \;" So I'm back to embedded loops unless you also know of a way to catenate the string "c:" in front of a find result?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 11:37 AM
тАО08-15-2002 11:37 AM
Re: How to traverse sub. dirs?
echo "find u5/data/tomx/*"
The find command is getting help from the shell which is not what you intended. Using * in find almost always causes uinexpected problems and find does not need * because the default is to identify everything in the current directory and compare that to whatever options you've added (like -type f or similar).
As a rule, never use * in a find command unless you know what the effect is (hint: use the echo above)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 11:58 AM
тАО08-15-2002 11:58 AM
Re: How to traverse sub. dirs?
Any way, welcome to the ITRC forums. They've been very helpful to me. Hope you find them useful also. They become addictive after awhile.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2002 02:38 PM
тАО08-16-2002 02:38 PM
Re: How to traverse sub. dirs?
Why not redirect the std out of a find /u/data -exec ls -l {} ]; > find.out for example.
Then use vi to make any changes you want. Granted, this is quick and dirty and you need enough memory to vi a 100M file. Set x permission on the file and execute it after you have finished making your changes. BTW does net_perm expect a file or a directory and couldn't you look at the net_perm source and simplify this entire process a lot?
- « Previous
- Next »