Retourner au contenu associé (journal : un script pour améliorer fgrep)
Posté par Mickael Villers le 15 novembre 2004 à 19:46. En réponse au journal un script pour améliorer fgrep. Évalué à 3.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: Cache ?
Posté par Mickael Villers . En réponse au journal un script pour améliorer fgrep. Évalué à 3.
Du style:
PDF=$(shell ls *pdf *ps)
TEXT=$(PDF:=.txt)
%.txt:%.pdf
ps2ascii $< $@
%.txt:%.ps
ps2ascii $< $@
all: $(TEXT)
clean:
rm -rf *.ps.txt *.pdf.txt
ca va te génèrer des fichiers cache en NOM.txt
et les regénèrer que si le fichier change.
Ton script deviendrait
#!/bin/sh
echo blahblah
make all
grep 1ドル *.ps.txt *.pdf.txt
C'est qu'une proposition et c'est bien sur optimisable :)