Find...

Dimitrios P. Bouras dbouras at hol.gr
Sun Mar 8 11:01:29 EET 1998


Reality Recovery Front wrote:
> 
>  Diavazo gia tin entoli "find" kai to vivlio dinei to paradeigma
>                                          find /usr -name "v*.h" -print,
> simplironontas,  "Einai aparetito na mpei to 'v*.h' mesa se dipla
> eisagogika, giati allios tha proftene to kelifos na anaptiksi ton xakrira
> mpalanter". Mpori kapoios na mou to eksigisi afto?

  To "kelifos" (shell) kanei wildcard-character expansion (anaptysei
 tous xarakthres mpalanter) prin ektelesei thn entolh. Ean tetoioi
 xarakthres einai mesa se single h double quotes (p.x. "v*.h" h
 'v*.h'), tote *DEN* tous anaptysei. Otan trexei kaneis to find, *DEN*
 0elei to shell na anapty3ei to 'v*.h' *PRIN* 3ekinhsei na trexei to
 find, alla 0elei to 'v*.h' na do0ei san parametros sto find *WS EXEI*.
 Kai ena paradeigma: ypo0etontas oti mesa sto sub directory apo to
 opoio 3ekinas to find exeis dyo arxeia, vfoo.h kai vbar.h, tote:

 dinontas
   find /usr -name v*.h -print
 to shell ektelei
   find /usr -name vfoo.h vbar.h -print

 pou einai katafanws la0os :)  ka0'oti 0a 0elame na psa3ei mesa sto
 /usr gia arxeia pou tairiazoun sto v*.h, ektos tou oti meta to
 expansion h parapanw synta3h einai la0os kai to find den 0a
 3ekinhsei kan. Ean yphrxe mono ena arxeio (p.x. to vfoo.h) mesa sto
 sub directory apo opou 3ekinhse to find:

 dinontas
   find /usr -name v*.h -print
 to shell ektelei
   find /usr -name vfoo.h -print

 pou 0a epsaxne gia to arxeio vfoo.h mesa sto /usr. Sthn periptwsh
 auth h synta3h tou find einai swsth, alla bebaia den einai auto pou
 0eloume na kanoume.

  Dhmhtrhs
--
====================================================================
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