Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b55880ae authored by vincent's avatar vincent
Browse files

update bashToBatch.md

parent a468dcf7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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