Loading bashToBatch.md +3 −2 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ This files contains mapping of bash command for batch and sometimes to OSX comma - `var=1` => `set /a "var=1" ## Condition: - `if [ -z ${var} ] then #do smtg fi` => `if defined var #do smtg` - `if [ -z ${var} ] then #do smtg fi` => `if not defined var #do smtg` ## File manipulation - `mkdir -p /path/to/file` => `mkdir path\to\file` Loading @@ -28,3 +28,4 @@ This files contains mapping of bash command for batch and sometimes to OSX comma - `wget -O path/to/localFile <URL>` => `curl -o path\to\localFile <URL>` - `ping -c` => `ping -n` - `# comment` => ` rem comment` but not efficient at all. Thus use `:: comment`. - `sleep 1` => `timeout 1 >nul` No newline at end of file Loading
bashToBatch.md +3 −2 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ This files contains mapping of bash command for batch and sometimes to OSX comma - `var=1` => `set /a "var=1" ## Condition: - `if [ -z ${var} ] then #do smtg fi` => `if defined var #do smtg` - `if [ -z ${var} ] then #do smtg fi` => `if not defined var #do smtg` ## File manipulation - `mkdir -p /path/to/file` => `mkdir path\to\file` Loading @@ -28,3 +28,4 @@ This files contains mapping of bash command for batch and sometimes to OSX comma - `wget -O path/to/localFile <URL>` => `curl -o path\to\localFile <URL>` - `ping -c` => `ping -n` - `# comment` => ` rem comment` but not efficient at all. Thus use `:: comment`. - `sleep 1` => `timeout 1 >nul` No newline at end of file