Tagged: bash


How to run node script from BASH?

Below shell script is running a node script, which gets an object from package.json, updates the app version and writes it back to the package.json using node API. // foo.sh node <<EOF var fs...


-nt file test operator in bash

File based condition for if statements in bash Condition: [ newerfile -nt olderfile ] Description: newerfile was changed more recently than olderfile, or if newerfile exists and olderfile doesn’t. Example: if [ file1.txt -nt...


How to sudo in windows

There is no sudo command in windows. But you can run the command prompt with admin privileges by right clicking the it and selecting run as administrator.