RICH-ATONE

2022年9月7日 #

Shell 脚本之流程控制

摘要: Shell 中常见的流程控制: if...else:和所有语言的if...else...类型一样 case...esac:与其他语言中的 switch ... case 语句类似 for:与其他语言中的 for 循环一样 while:和其他语言的 while 循环一样 until循环:与 while 阅读全文

posted @ 2022-09-07 16:06 RICH-ATONE 阅读(65) 评论(0) 推荐(0) 编辑

shell判断一个字符串是否包含另一个字符串 (五种方法示例)

摘要: 方法一:利用字符串运算符 str='this is a tree! and that is a car.' //如果包含this [[ $str =~ "this" ]] && echo "\$str contains this" //如果不包含that [[ $str =~ "that" ]] | 阅读全文

posted @ 2022-09-07 15:48 RICH-ATONE 阅读(6642) 评论(0) 推荐(0) 编辑

Shell脚本的Sleep命令

摘要: linux shell 中的sleep命令 在有的shell(比如linux中的bash)中sleep还支持睡眠(分,小时) sleep 1 睡眠1秒 sleep 1s 睡眠1秒 sleep 1m 睡眠1分 sleep 1h 睡眠1小时 阅读全文

posted @ 2022-09-07 15:30 RICH-ATONE 阅读(639) 评论(0) 推荐(0) 编辑

Clickhouse执行报错(Double-distributed IN/JOIN subqueries is denied (distributed_product_mode = ‘deny‘))

摘要: 错误示例: DB::Exception: Double-distributed IN/JOIN subqueries is denied (distributed_product_mode = 'deny'). You may rewrite query to use local tables in 阅读全文

posted @ 2022-09-07 15:23 RICH-ATONE 阅读(616) 评论(0) 推荐(0) 编辑

导航