Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

too many files to list 3

Status
Not open for further replies.

dwcasey

MIS
Oct 31, 2002
179
US
Trying to do a simple ls in a directory and I'm getting:

ls: 0653-340 There is not enough memory available now.

Is there a way to format a find command to say show me files that are 6-months or 12-months old? That might allow me to get some of what's in there.
 
this will let you see all the files in there-
find /some/directory -type f -exec ls -al {} \;

this will let you see all the files changed more than 30 days ago-
find /some/directory -type f -ctime +30 -exec ls -al {} \;

this will let you delete all the files changed more than 30 days ago-
find /some/directory -type f -ctime +30 -exec rm {} \;
 
Hi,

You can also increase the ncargs value (in sys0) via a chdev. It can be too low in some case, but it solves a lot of "arg list too long" error messages to increase it.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top