Loading bashToBatch.md +5 −2 Original line number Diff line number Diff line Loading @@ -18,10 +18,13 @@ This files contains mapping of bash command for batch and sometimes to OSX comma ## Process - `exit 101` => `exit /b 101` - `if [ $? = 0]` => `if not errorLevel 1 <cmd>` - `if [ $? = 0] then <cmd>` => `if not errorLevel 1 (<cmd>)` - `var=$1` => `set "var=%1"` - `>/dev/null` => ` > NUL` - `2>&1` => `2>&1` ## Other - `sha256sum -c filename` => `certUtil -hashfile filename SHA256` => `shasum -a 256 filename` - `wget -O path/to/localFile <URL>` => `curl -o path\to\localFile <URL>` - `ping -c` => `ping -r` - `ping -c` => `ping -n` - `# comment` => ` rem comment` but not efficient at all. Thus use `:: comment`. No newline at end of file Loading
bashToBatch.md +5 −2 Original line number Diff line number Diff line Loading @@ -18,10 +18,13 @@ This files contains mapping of bash command for batch and sometimes to OSX comma ## Process - `exit 101` => `exit /b 101` - `if [ $? = 0]` => `if not errorLevel 1 <cmd>` - `if [ $? = 0] then <cmd>` => `if not errorLevel 1 (<cmd>)` - `var=$1` => `set "var=%1"` - `>/dev/null` => ` > NUL` - `2>&1` => `2>&1` ## Other - `sha256sum -c filename` => `certUtil -hashfile filename SHA256` => `shasum -a 256 filename` - `wget -O path/to/localFile <URL>` => `curl -o path\to\localFile <URL>` - `ping -c` => `ping -r` - `ping -c` => `ping -n` - `# comment` => ` rem comment` but not efficient at all. Thus use `:: comment`. No newline at end of file