Re: [LINUX:3537] (no subject)

Sezai YILMAZ (bbm754@eti.cc.hun.edu.tr)
Wed, 10 Feb 1999 16:28:10 +0300 (MEST)

On Wed, 10 Feb 1999, ilker [iso-8859-1] imamoğlu wrote:

> sonra da
> while read x
> do
> grep -l string $x
> done <dosya.lst
>
> ile pathi grepe değişken olarak attım. Gayet guzel calıstı. baska ilginc
> yollarda olabilir herhalde ama benim elimden bu geldi.

for x in * # butun dosyalar icin don
do
if [ -f $x ] #dosya gercekten dosya mi, yoksa dizin mi?
then
grep string $x
fi
done

kolay gelsin
Sezai


Listeden cikmak icin:
unsub linux
mesajini listeci@bilkent.edu.tr'a gonderiniz.
Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin.
Liste arsivinin adresi: http://listweb.bilkent.edu.tr/