摘要: 1、在命令行上写分支语句 read -e -p "f:" f; if [ -z "$f" ]; then echo "f is null"; else echo "f=$f"; fi 2、在命令行写循环预计 o='abc def'; for i in $o; do echo "i=$i"; done 阅读全文
posted @ 2024-04-24 18:04 口袋呆呆 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-06-15 11:24 口袋呆呆 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-06-14 10:23 口袋呆呆 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-05-26 09:34 口袋呆呆 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-04-03 10:48 口袋呆呆 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-03-14 10:08 口袋呆呆 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1、查找一个目录下所有文件并清空每一个文件 find ./ -type f |awk '{print "echo > "$0}'|bash 阅读全文
posted @ 2020-06-16 20:43 口袋呆呆 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1、匹配 InterGateway.Device.{i}.user 并替换为 InterGateway.Device.user #include <iostream> #include <string> #include <boost/regex.hpp> boost::regex reg("^(I 阅读全文
posted @ 2020-06-14 10:45 口袋呆呆 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1、H3C 以太网OAM技术白皮书 http://www.h3c.com/CN/D_200909/650481_30003_0.htm 2、CISCO 以太网 CFM、Y.1731 基本概念、配置和实施 https://www.cisco.com/c/zh_cn/support/docs/async 阅读全文
posted @ 2020-05-29 16:12 口袋呆呆 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 错误提示:*** Error in `': free(): invalid next size (fast): 0x0000000000608 free 错误原因:malloc 了一块内存,但使用内存时越界了,给申请内存赋值时超出了申请的大小,导致 free 时出错 阅读全文
posted @ 2020-03-27 12:50 口袋呆呆 阅读(407) 评论(0) 推荐(0) 编辑