bash

bash #

read #

bash
# 读取输入字符:
read -p "Press any key to continue..." -n 1 -r

-p    打印提示语
-n NUM    限制读取字符数量
-r    防止反斜杠被转移

set #

bash
# 更新参数列表:
set -- "new_arg1" "new_arg2"
2025年1月4日