Horje
mac run a shell script Code Example
run sh from terminal mac
chmod +x fileName
bash fileName
run sh not a command mac
./run.sh
mac run a shell script
#!/bin/bash
year=`date +%Y`
if ((“$year” % 400) == “0”)) || (( ( “$year” % 4 == “0”) && (“$year” % 100 != “0”) )); then
echo "This is a leap year. Don’t forget to charge the extra day!”
else
fi
echo "This is not a leap year."




Shell

Related
Install Kubernetes Operator SDK Code Example Install Kubernetes Operator SDK Code Example
linux add user Code Example linux add user Code Example
how to upload laravel project on github using command Code Example how to upload laravel project on github using command Code Example
uninstall laptop mode tools elementary os Code Example uninstall laptop mode tools elementary os Code Example
install dependency google colab Code Example install dependency google colab Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12