
Shell编程
Shell编程
持续努力
努力不辜负每一天. 享受编程和技术带来的快乐!
展开
-
set -e或 -x 用法
shell: help set: 查看bash的set命令的用法 set -x: -x Print commands and their arguments as they are executed. 即把执行的脚本输出到stdout set -e: -e Exit immediately if a command exits with a non-zero status. 即报错立马退出...原创 2021-02-28 18:17:26 · 340 阅读 · 0 评论 -
bash shell : 删除文件的前几行
sed -i ‘1,100d’ test.txt原创 2019-10-29 21:52:31 · 736 阅读 · 0 评论 -
shell 字符串比较
if[空格str空格==空格str2空格]; then注意空格原创 2019-10-29 18:15:52 · 249 阅读 · 0 评论 -
find: paths must precede expression
用find命令查找时 例如命令 find /home -name w* 如下find: paths must precede expression: webfdUsage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|sta...转载 2019-04-16 22:20:39 · 179 阅读 · 0 评论 -
find查找并复制或移动到指定目录
find . -name ‘means’|xargs -i mv {} ./k-means/find . -name ‘means’|xargs -i cp {} ./k-means/原创 2019-04-16 22:33:47 · 2932 阅读 · 0 评论 -
terminal中shell命令中的空格,括号等
需要用空格表示转义:coco_ssd_mobilenet_v1_1.0_quant_2018_06_29 (1).zipmv coco_ssd_mobilenet_v1_1.0_quant_2018_06_29\ (1).zip trash/原创 2019-05-27 14:18:31 · 1117 阅读 · 0 评论