Bonjour,

Même en m'aidant notamment de cet article, je n'arrive à pas trouver comment utiliser GNU grep dans un batch Windows 7 (32 bits).

Je cherche le pattern "<a href="/en/map/blah">blah</a>" :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
c:\>grep.exe ^"<a href=\"/en/map/.+?\">.+?</a>" input.txt
The system cannot find the file specified.

c:\>grep.exe ^"<a href=\"/en/map/.+?\">.+?</a>" . input.txt
The system cannot find the file specified.
J'ai également essayé le grep de MinGW et celui UnxUpdates, sans succès.

Quelqu'un aurait-il une idée ?

Si vraiment c'est impossible, j'utiliserai Python, mais un batch a l'avantage de fonctionner partout sans rien installer.

Merci.