all files fas name with current date in format "01.01.2018"
This information wasn't in the GitHub issue. In this case simple form of :select
should do:
:select! *01.01.2018*
Here's a version that uses %date%
:
command! seltodays :execute 'select! *'.system('FOR /F "eol=; usebackq tokens=2,3* delims=/ " %%i in (`echo %%date%%`) do @echo %%j-%%i-%%k').'*'
You might need to change separators or order of variables in echo
part as format is not fixed and depends on locale. The example is for "wrong" mm/dd/yyyy format, if you have normal "dd.mm.yyyy", the following should work (didn't test this one):
command! seltodays :execute 'select! *'.system('FOR /F "eol=; usebackq tokens=2,3* delims=. " %%i in (`echo %%date%%`) do @echo %%i-%%j-%%k').'*'