set指令的作用是为shell设置参数变量,用法如下: #! /bin/sh echo the date is $(date) set $(date) echo the mouth is $2 exit 0