Re: [Linux] pdf dosyalari-grep komutu

---------

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

From: Mustafa Karakaplan (mkarakaplan@inonu.edu.tr)
Date: Thu 08 Dec 2005 - 18:18:52 EET


pdf icerisine grep komutu ile bakamazsınız.
pdftotext ile cevirip bakabilirisiniz.
asagidaki scripti bir dosya icine ekleyin.
ara.sh olsun. pdf dosyalarin bulundugu bir dizinde programi calistirisaniz.

ornek: ./ara.sh electromagnetic

verdiginiz kelime gecen pdf ler xpdf ile acilacaktir.

#!/bin/bash

function usage {
        echo "Kullanim: $0 anahtar"
}

if [ "$#" -eq "0" ]
then
   usage
else
   for i in *.pdf
   do
     pdftotext "$i" temp.txt
     if grep $1 temp.txt > /dev/null
     then
        xpdf "$i"
     else
      echo "Taranan="$i
     fi
   done

rm temp.txt
echo "Arama Sonu"

fi

---------- Original Message -----------
From: orkun <temiz@deprem.gov.tr>
To: linux@liste.linux.org.tr
Sent: Thu, 08 Dec 2005 12:54:56 +0200
Subject: [Linux] pdf dosyalari-grep komutu

> merhaba
>
> yigin halinda pdf dosyalarinda bir kelime aramak icin
> grep komutu nasil olmalidir ?
> veya varsa baska bir komutta olabilir ?
>
> saygilar
>
> Ahmet Temiz
>
> ______________________________________
> XamimeLT - installed on mailserver for domain @deprem.gov.tr
> Queries to: postmaster@deprem.gov.tr
> ______________________________________
> The views and opinions expressed in this e-mail message are the sender's own
> and do not necessarily represent the views and the opinions of Earthquake
> Research Dept. of General Directorate of Disaster Affairs.
>
> Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C.
>
> B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir.
------- End of Original Message -------

_______________________________________________
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.