摘要: tee的用法 tee语法:tee [-a] [-i] [File…] 作用:相当于echo加>的作用,将标准输入输出到标准输入的同时写入文件 -a:(add)不覆盖原来的内容,添加到文件的后面 -i:(ignore)没完成则不被打断 #tee将文本输出到屏幕的同时写入tee.txt文件 $echo 阅读全文
posted @ 2021-12-11 18:30 Oops!# 阅读(988) 评论(0) 推荐(0) 编辑
摘要: 刚刚学会了一个很实用的 shell 命令 set -ex,在这里分享一下。 稍有常识的人都能看出,这是 set 命令加上了 -e 和 -x 两个参数 (废话么这不是)。那么,我就把这两个参数拆开,分别说一下它在脚本中的用处。 set -e 先说说 set -e,这个参数的含义是,当命令发生错误的时候 阅读全文
posted @ 2021-12-11 18:15 Oops!# 阅读(444) 评论(0) 推荐(0) 编辑
摘要: At some point, you might have to deal with hotlinking: when third parties embed in their websites the content they find on your websites. The third-pa 阅读全文
posted @ 2021-12-11 14:12 Oops!# 阅读(130) 评论(0) 推荐(0) 编辑