Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009

    Unanswered: PLEASE HELP: Find: The Parameter list is too long.

    find ./* -prune -name "pkg*" -ctime +30 -exec rm -rf {} \;

    ksh: /usr/bin/find: 0403-027 The parameter list is too long.

    List grew too long and now i need help finding a alternative way to accomplish this task.. It deletes all of the pkg files that are greater then 30 days. PLEASE HELP. Would be nice to just be able to modifiy slightly to accomplish same thing. Or maybe assistance with breaking this down into batches of files at once. Please advise. thanks! dbforums have never let me down before!

  2. #2
    Join Date
    Jun 2003
    Toronto, Canada
    Provided Answers: 1
    I think that should be
    find . -prune -name "pkg*" -ctime +30 -exec rm -rf {} \;
    "It does not work" is not a valid problem statement.

  3. #3
    Join Date
    Jan 2007
    Jena, Germany
    I would also put the {} into double-quotes to prevent problems with spaces in file/path names.
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts