Solved

AIX - "parameter list is too long" Issue

Posted on 2013-05-22
5
30 Views
Last Modified: 2016-07-05
I have the following Issue

root> ls -l ./*/*.html
ksh: /usr/bin/ls: 0403-027 The parameter list is too long.

Without changing the ARG_MAX, How do I list all the .html files and delete them
0
Comment
Question by:sriveena2010
  • 2
5 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
Comment Utility
List:

find /start/dir -type f -name "*.html" -ls

Delete:

find /start/dir -type f -name "*.html" | xargs rm

Replace /start/dir with the path to the directory where you want to start the search.
0
 
LVL 23

Assisted Solution

by:nemws1
nemws1 earned 250 total points
Comment Utility
Or just with the find command (should handle more oddly named files, spaces, etc)
find /start/dir -type f -name "*.html" -exec rm "{}" \;

Open in new window

0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
Once more a very simple question and two simple (equivalent) answers.
The solutions given in
https:#a39188304  and
https:#a39189312
are both correct and verifiable just by consulting the "man" pages,
so points should be split.

wmp
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now