摘要:
什么是Shell脚本示例看个例子吧:#!/bin/shcd ~mkdir shell_tutcd shell_tutfor ((i=0; i bash但在Mac OS上不是,/bin/sh和/bin/bash是两个不同的文件,尽管它们的大小只相差100字节左右:iMac:~ wuxiao$ ls -l /bin/*sh-r-xr-xr-x 1 root wheel 1371648 6 Nov 16:52 /bin/bash-rwxr-xr-x 2 root wheel 772992 6 Nov 16:52 /bin/csh-r-xr-xr-x 1 root wheel ... 阅读全文