Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-10-2005, 07:18 AM   #1
Registered: Jul 2004
Location: Berlin
Distribution: fedora 3
Posts: 79

Rep: Reputation: 15
argument list to long for linux commands

hi everybody,

i have the following problem:

i got a directory containing many thousand files, some of them ending with *.dssp, some others ending with *.ent.
what i want to do now is to delete all files ending with *.dssp but if i execute the command:

>> rm -f *.dssp

i get the error message

>> argument list too long

what can i do to solve this? do i have to set some internal variable to a higher value?

thx in advance.........
Old 05-10-2005, 08:36 AM   #2
Registered: Jul 2004
Location: Berlin
Distribution: fedora 3
Posts: 79

Original Poster
Rep: Reputation: 15

found the solution on my own:

find . -name ' *.dssp' -exec rm {} \;


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cp lots of files argument list too long dtra Linux - Software 4 07-07-2005 10:14 AM
bash: /bin/rm: Argument list too long? FiveFlat Linux - General 5 08-12-2004 12:29 AM
-bash: /bin/mv: Argument list too long balanagireddy Linux - General 2 07-28-2004 12:19 AM
Argument list too long trutnev Linux - General 3 04-22-2004 05:32 PM
/bin/rm: Argument list too long dragon49 Linux - Software 1 09-02-2003 01:27 PM

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration