This file contains hidden or 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
# This sed command removes every C-style single line comments (//) from a file that can contain strings delimited by `"` | |
# (intended for use with JSON files). | |
# So this JSON: | |
# { | |
# "app url": "https://www.example.com" // URL of the application | |
# } | |
# becomes: | |
# { | |
# "app url": "https://www.example.com" | |
# } |
This file contains hidden or 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
Get-Content .\settings.json | %{ if ($_.Contains('//')){ $_.SubString(0, $_.IndexOf('//')) } else {$_}} | ConvertFrom-Json |
This file contains hidden or 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
for /f %%i in ('application arg0 arg1') do set VARIABLE=%%i | |
echo %VARIABLE% |