← Back to team overview

sslug-teknik team mailing list archive

Re: Unzip af MANGE filer

 

Jeg ville foretrække:

find . -type f -name <string to match> -exec echo {} \;

husk mellem rummet imellem {} og \;

:-)

Rasmus Andersen wrote:

On Thu, Jun 14, 2001 at 10:04:46PM +0200, Jesper Lund wrote:

Jeg har prøvet med en "find . "*.zip" | xargs unzip" Men den kører unzip
med alle filerne som argument, og den kan unzip heller ikke klare.
Findes der andre nemme måder at køre en kommando med alle filer i dire't
enkeltvis osm argument?


xargs -n X. (man xargs). Saet X til noget passende.



--
-------------| This mail has been sent to you by: |------------
Klavs Klavsen, IT-coordinator and Systems Administrator at
Metropol Online - http://www.metropol.dk
Tlf. 33752700, Fax 33752720, Email ktk@xxxxxxxxxxx

Private-  Email klavs@xxxxxxxxxxx - http://www.vsen.dk

--------------------[ I believe that... ]-----------------------
It is a myth that people resist change. People resist what other
people make them do, not what they themselves choose to do...
That's why companies that innovate successfully year after year
seek their peopl's ideas, let them initiate new projects and
encourage more experiments.            -- Rosabeth Moss Kanter






References