1. create file. sh file
In this example, the full name of the sh file is demo.sh, and the next step is to use the freely familiar editor editor command to
2. Write the. sh file
#!/bin/shEcho+----------------------------------------------------------+Echo+ A Tools forPost CSDN blogs and input the key as Fllow: +Echo+ Digg [Digg all Blogs] +Echo+ views [view all blogs] +Echo+ReadID [ReadOne blogs] +Echo+ exports [exports all blogs] +Echo+ publish filename [Publish blogs] +Echo+ publishes filename [bat Publish blogs] +Echo+ login account password [login CSDN] +Echo+----------------------------------------------------------+printf "Input your order which num is contained on above:" Readorderphp do.php$order
3. Run SH file
Operating mode
./demo.sh
Just, here, may prompt no permission, then need to change the permissions of the file, command for
chmod777 run.sh
Getting started with a simple SHELL under MAC