Recursive retrieval of files

S. Ksenitelis simos at athena.teiath.gr
Tue Mar 24 01:09:57 EET 1998



On Mon, 23 Mar 1998, Andreadakis Manolis wrote:

> Exw to eksis erwtima pros tous guru tou bash:
> 
> Exw se mia domi directories kai se arketo bathos
> arxeia diaforwn typwn alla egw thelw na mazepsw
> px auta me kataliksi gif jpg GIF ktl :-) 
> Auto pou katafera egw einai:
> 
> cd my_big_tree_of_irrelevant_plus_image_files
> tar cvf /dev/null > 1.1
> grep *.gif 1.1 > 2.2
> grep *.jpg 1.1 >> 2.2
> mv `cat 2.2` .
> rm -f 1.1
> rm -f 2.2
> 
> Ektos apo akompso einai kai ligo argo (to tar)
> Exei na proteinei kaneis kati kalytero?

Opos eipe o Achileas sto proigoumeno mail, mporeis na xrhsimopoieiseis thn
find. Gia paradeigma:

tar cvfz my_photoes.tar.gz `find /my_dir -name "*.gif" -o -name "*.jpg"`

Simos KSenitellis

--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list