摘要: 要与Linux交互,脚本获取键盘输入的结果是必不可少的,read可以读取键盘输入的字符。 read [-rs] [-a ARRAY] [-d delim] [-n nchars] [-N nchars] [-p prompt] [-t timeout] [var_name1 var_name2 .. 阅读全文
posted @ 2020-12-09 18:18 ascertain 阅读(622) 评论(0) 推荐(0) 编辑
摘要: : 是shell 内建命令,等同于 true type -at : 返回值 为 NULL , exit code 为 0 作为分隔符PATH /etc/passwd 清空文本内容 :>file 原理为先运行 :,返回值为NULL,redirect至 file等同于 true>file >file 占 阅读全文
posted @ 2020-12-09 11:47 ascertain 阅读(92) 评论(0) 推荐(0) 编辑