- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- arg list too long on ls *.cpp
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
01-03-2005 03:17 AM - last edited on 03-14-2013 07:49 PM by Cathy_xu
01-03-2005 03:17 AM - last edited on 03-14-2013 07:49 PM by Cathy_xu
arg list too long on ls *.cpp
I have more than 250 files with the extension cpp, and when I do a "ls -l *.cpp" I have the error "arg list too long".
How can I list all my files, Here is a limit for the list commands?
P.S.This thread has been moved from System Administration> to HP-UX > languages- HP Forums Moderator
- Tags:
- Arg list too long
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 10:44 PM
01-06-2005 10:44 PM
Re: arg list too long on ls *.cpp
http://h18000.www1.hp.com/support/askkcs/hpcg/253_0_10495272_2883413.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2005 02:08 AM
01-13-2005 02:08 AM
Re: arg list too long on ls *.cpp
try
ls -l | grep "\.cpp"
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2005 02:23 AM
02-06-2005 02:23 AM
Re: arg list too long on ls *.cpp
Basically this will work and is very fast.
find /var/opt -name '*.cpp' -print | xargs ls
It finds in /var/opt all file with extension .cpp and passes them on to ls.
Regards,
Bob