- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: find arg list to long
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
Forums
Discussions
Discussions
Discussions
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
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
03-03-2003 09:39 AM
03-03-2003 09:39 AM
find /Apps/applmgr/lib/* -type f -print |awk -F / {'print $8, $9, $10}' >> FILE_LIST
but when I put it within a shell script I receive a message:
find arg list to long
Any ideas as to why and how to get around it ??
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 10:16 AM
03-03-2003 10:16 AM
Re: find arg list to long
The shell is expanding the "*" character before the 'find' is executed. Place double quote marks around the argument:
# find "/Apps/applmgr/lib/*" ...
Better yet, in this case, drop the "/*" part. Your 'find' command will search the directory (and its decendents) for files therein.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 10:22 AM
03-03-2003 10:22 AM
Re: find arg list to long
If you're ussing "/" cahracter like awk's field separator, the correct sintax must be:
#find /Apps/applmgr/lib/* -type f -print |awk -F"/" {'print $8, $9, $10}' >> FILE_LIST
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 10:26 AM
03-03-2003 10:26 AM
Re: find arg list to long
When using the find command is
there an argument you can use so it WILL NOT search through subdirectories ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 10:28 AM
03-03-2003 10:28 AM
Re: find arg list to long
find /Aps/applmgr/lib/\* -type f -print .........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 12:15 PM