Re: [Linux] tum dosyalar icinde bir text bulma

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Nilgün Belma Bugüner (nilgun@belgeler.gen.tr)
Date: Mon 07 Aug 2006 - 20:58:23 GMT


Pts 07 Ağu 2006 13:59 sularında, Ahmet_Yildirimtepe@D2.com.tr şunları yazmıştı:
> Merhaba arkadaslar,
> Ben butun php dosyalari icinde mail( komutunu aratmak istiyorum bana
> yardimci olabilirmisiniz?
>
> Hangi komut ile butun dosyalar icinde mail komutunu kullananlari
> bulabilirim?
Selam,

Şöyle bir betik sanırım işinizi görecek:
----------------
#!/bin/bash
# findstring.sh:
# Find a particular string in binaries in a specified directory.
# usage: ./findstring.sh dir str

for file in $( find $1 -type f | sort )
do
  strings -f $file | grep "$2" | sed -e "s%$1%%"
done
  
---------------

Esen kalın,
Nilgün

_______________________________________________
Linux mailing list
Linux@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.