batch 찾았던 내용들..
정규식 사용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 문자^
카테고리 없음
2018. 1. 25. 21:01
batch script |(pipe line) 관련된 글
https://stackoverflow.com/questions/8192318/why-does-delayed-expansion-fail-when-inside-a-piped-block-of-code 위는 파이프 라인의 작동 원리 https://stackoverflow.com/questions/12976351/escaping-parentheses-within-parentheses-for-batch-file 위는 커맨드 블록 구문 안에서 echo로 ) 출력할 때 ^ 쓰면되는데 파이프로 넘기면 왜 괄호(parentheses)가 안나오는지 어떻게 해결해야 하는진데 맨 위 링크가 근본적인 문제에 대해서 설명 해줌.
카테고리 없음
2018. 1. 25. 20:42
