Hi,
ich hab einen Ordner (Debian) welcher ziemlich lange dateinamen enthält. Ich müßte jetzt einen teil davon mit einer wildcard bzw. regulärem ausdruck rauslöschen aber ich bekomme nur o.g. meldung zurück. Wie könnte ich die denn noch löschen ausser mit rm?
Wäre dankbar für einen kleinen tip
gruß,
andreas
bash: /bin/rm: Argument list too long
-
- Posts: 20
- Joined: 2003-09-21 09:04
- Location: Burghausen / Bayern
-
- Project Manager
- Posts: 11164
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: bash: /bin/rm: Argument list too long
Beispiel?
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 142
- Joined: 2003-02-06 12:57
- Location: Karlsruhe
Re: bash: /bin/rm: Argument list too long
for a in *.tmp ; do rm $a ; done
wildcard anpassen.
als alternative xargs oder find mit -exec
wildcard anpassen.
als alternative xargs oder find mit -exec
-
- Posts: 20
- Joined: 2003-09-21 09:04
- Location: Burghausen / Bayern
Re: bash: /bin/rm: Argument list too long
Vielen dank. Habs mittlerweile hinbekommen. Mit mc gings. Die dateeinamen waren einfach zu lange.
-
- Posts: 656
- Joined: 2003-01-08 20:10
- Location: Berlin
Re: bash: /bin/rm: Argument list too long
Schwer vorstellbar. Eher fehlten die Tüdelchen, alsoRossi wrote:Vielen dank. Habs mittlerweile hinbekommen. Mit mc gings. Die dateeinamen waren einfach zu lange.
Code: Select all
for a in *.tmp ; do rm "$a" ; done
[TOM]
-
- Posts: 20
- Joined: 2003-09-21 09:04
- Location: Burghausen / Bayern
Re: bash: /bin/rm: Argument list too long
Ich hatte es ja gar nicht mit einem script ausprobiert. Wie gesagt, mit mc konnte ich die dann auch über den Filter auswählen und löschen.