카테고리 없음
batch 찾았던 내용들..
땅진
2018. 1. 25. 21:01
정규식 사용
findstr has no full REGEX Support. Especially no {Count}. You have to use a workaround:
echo %var%|findstr /r "^[a-z][a-z]$ ^[a-z][a-z][a-z]$"
which searches for ^[a-z][a-z]$ OR ^[a-z][a-z][a-z]$
(Note: there is no space between %var% and | - it would be part of the string)
디렉토리 최신순 파일명만
dir /o-d /b
escape 문자
^