摘要: 1.先获取部分数据 ip_0=`ip a | grep inet | grep -v inet6 | grep ens | awk 'NR==1{print $2}' | cut -d '.' -f 4` 2.去除/ip_1=${ip_0%%/*} 思路如此 先用grep awk cut 取字段,再 阅读全文
posted @ 2022-05-31 19:47 孙犯困 阅读(121) 评论(0) 推荐(0) 编辑
摘要: mysql -uroot -pP@ssw0rd123.abc -h127.0.0.1 -P3306 -e \'select c.TABLE_SCHEMA ,c.TABLE_NAME ,c.COLUMN_NAME ,c.COLUMN_TYPE ,c.COLUMN_KEY from informatio 阅读全文
posted @ 2022-05-31 09:21 孙犯困 阅读(124) 评论(0) 推荐(0) 编辑