find, grep, xargs...

Lubomir Majersky lumax at in.acompp.sk
Thu Apr 10 13:09:22 CEST 2008


Jiri Calda  wrote / napísal(a):
> Lubomir Majersky wrote:
> 
>> find . -type f -print | xargs grep -lE 'vzorka-XYZ' > ./vystup.txt && 
>> grep -iE 'vzorka-ABC' ./vystup.txt | xargs -J % cp -p % ../adresar
>>
> find . -name "vzorek*" -exec cp {} adresar \;
>         ^^^^^^^^^^^^^^^             ^^^^^^^^
...toto nie. Ja najskor musim spracovat vzorku, ktora hladam v obsahu 
suborov

-- 
LuMaX



More information about the Users-l mailing list