shell 读取命令行参数

$ cat t
#! /bin/sh
n=${1:-1024}
echo $n

---

result of run:

$ sh t  3

3

$ sh t

1024

你可能感兴趣的:(shell 读取命令行参数)