@echo off
Rem atags for hidemaru.exe ( like as ctags :-)
Rem use grep 2.5..
if "%1"=="-?" goto USAGE
if "%1"=="-h" goto USAGE
if "%1"=="/?" goto USAGE
if "%1"=="/h" goto USAGE
if "%1"=="--help" goto USAGE
if "%1"=="" goto NORMAL
if exist tags del tags
grep -nrEI "^[_a-zA-Z][_a-zA-Z0-9@]*:" %1 >tags
grep -nrEI "^[_a-zA-Z][_a-zA-Z0-9@]*[[:blank:]]+[Ee][Qq][Uu]" %1 >>tags
goto END
:NORMAL
Rem wild card means DIRECTORY, but not mean FILE.
grep -nrEI "^[_a-zA-Z][_a-zA-Z0-9@]*:" *.* >tags
grep -nrEI "^[_a-zA-Z][_a-zA-Z0-9@]*[[:blank:]]+[Rr][BbWw]" *.* >>tags
grep -nrEI "^[_a-zA-Z][_a-zA-Z0-9@]*[[:blank:]]+[Ee][Qq][Uu]" *.* >>tags
goto END