Get-keys.bat Today
:: -------------------------- :: Defaults and arguments :: -------------------------- set "ROOT=%~1" if "%ROOT%"=="" set "ROOT=%CD%"
REM findstr in Windows supports limited regex; some syntax above may not be portable. REM We'll use simpler multiple findstr searches per pattern below. get-keys.bat
:: -------------------------- :: Main scan loop :: -------------------------- pushd "%ROOT%" 2>nul || (echo Cannot access %ROOT% & exit /b 1) equ 0 ( for /f "tokens=1* delims==" %%K in ("
:: Write CSV header set "CSV_HDR=File,LineNumber,Context,MatchType,MatchValue" if "%DRY%"=="0" ( echo %CSV_HDR%> "%OUTFILE%" ) log" set "EXCLUDE=.git
call :mask_value "%MATCHVAL%" set "OUTVAL=%MASKED_VALUE%" REM Quote fields for CSV, replace quotes inside fields set "QFILE=%%~fF" set "QLINE=%LN%" set "QCTX=%L%" REM escape double quotes by doubling them set "QFILE=%QFILE:"=""%" set "QCTX=%QCTX:"=""%" if "%DRY%"=="0" ( >>"%OUTFILE%" echo "%QFILE%","%QLINE%","%QCTX%","%MT%","%OUTVAL%" ) echo Found [%MT%] in %%~fF:%LN% -> %OUTVAL% ) ) ) )
for %%A in (%*) do ( set "ARG=%%~A" rem --extensions= echo "!ARG!" | findstr /i /b "--extensions=" >nul if !errorlevel! equ 0 ( for /f "tokens=1* delims==" %%K in ("!ARG!") do set "EXTS=%%L" ) echo "!ARG!" | findstr /i /b "--exclude=" >nul if !errorlevel! equ 0 ( for /f "tokens=1* delims==" %%K in ("!ARG!") do set "EXCLUDE=%%L" ) if /i "!ARG!"=="--mask" set "MASK=1" if /i "!ARG!"=="--dry-run" set "DRY=1" )
:: parse other args set "EXTS=txt,env,conf,config,json,js,py,java,xml,ini,yml,yaml,md,log" set "EXCLUDE=.git;.venv;node_modules;venv" set "MASK=0" set "DRY=0"
Are
plumes predicted by realistic convection experiments
and numerical simulations?
John Watson
What
is the origin of ocean island basalt (OIB)?
John Caulfield
Are
the predictions of the plume hypothesis borne out by
observation? 1. Temperature
Natalie Starkey
Are
the predictions of the plume hypothesis borne out by
observation? 2. Uplift
Ross Thompson
Have
plumes been detected seismologically?
Maeve O’Shea
What
alternatives are there to the plume hypothesis?
Helen Brown
Are
hotspots “wetspots”?
Claire de Villaneuva
What
is the role of the core in plumes?
Graham Smith |