![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bash
文章平均质量分 84
liuck
这个作者很懒,什么都没留下…
展开
-
国内镜像快速下载vscode server
1. 找到vs code的提交版本号:打开远端项目时会显示setting up: downloading vs code server 之类的提示,这时在远端执行ps aux | grep wget 可以看到wget --tries=0 --connect-timeout=7 --dns-timeout=7 --show-progress -nv -O vscode-server.tar.gz http://update.code.visualstudio.com/commit:b3...原创 2021-11-08 16:22:44 · 5951 阅读 · 4 评论 -
grep 仅显示匹配部分
默认情况下grep显示对应的整行,如果要做统计的话,需要sed去除不要的部分, 但grep提供了仅显示需要的部分, 使sed脚本更简单.选项是-o如找出jdbc中报表不存在的有多少哪些grep -o "Table .* doesn't exist" xxx.log | sed -e "s/Table '\(.*\)' doesn't exist/\1/" | sort原创 2016-02-02 17:30:55 · 17959 阅读 · 0 评论 -
bash for each
for a in *.sql ; do mysql -u root -ppwd database_name < $a ; done ;原创 2016-02-02 17:28:55 · 487 阅读 · 0 评论