Created
May 16, 2019 08:01
Star
You must be signed in to star a gist
cmd FINDSTR can act as RegularExpression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo hogemoge-dev | FINDSTR /R ".*staging\>" > NUL | |
IF %errorlevel% EQU 0 ( | |
echo success staging | |
) ELSE ( | |
echo fail staging | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo hogemoge-dev | FINDSTR /R ".*dev\>" > NUL | |
IF %errorlevel% EQU 0 ( | |
echo success dev | |
) ELSE ( | |
echo fail dev | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo hogemoge-staging | FINDSTR /R ".*staging\>" > NUL | |
IF %errorlevel% EQU 0 ( | |
echo success staging | |
) ELSE ( | |
echo fail staging | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment