Solved

AIX - "parameter list is too long" Issue

Posted on 2013-05-22
5
39 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
ID: 39188304
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
ID: 39189312
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
ID: 41690663
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.
Suggested Courses

710 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