摘要:
错误的重定向 错误的重定向: python train.py 2>&1 > output.log 这样会导致stdout被正确重定向到文件,但是stderr还在屏幕上。 应该先输出重定向再2>&1 set -euo pipefail -e 出错就退出 -u 变量未定义就退出 -o pipefail 阅读全文
posted @ 2022-12-02 18:05
王冰冰
阅读(23)
评论(0)
推荐(0)
摘要:
awk的命令格式是: awk [options] <script> [file] 遍历file中的每行,并执行<script>中指定的命令。不指定file时默认从stdin读取。 awk -F ':' '{print $1}' /etc/passwd 这里-F ':'是options,指定字符串使用 阅读全文
posted @ 2022-12-02 11:45
王冰冰
阅读(54)
评论(0)
推荐(0)

浙公网安备 33010602011771号