摘要: 1、Shell script read missing last line http://stackoverflow.com/questions/12916352/shell-script-read-missing-last-line 阅读全文
posted @ 2017-01-17 15:28 大山山 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1、保持顺序并消除重复行 #!/bin/bash unset lines# while read line ; do while read line || [ -n "$line" ]; do # echo 'lines length: '${#lines[@]} # echo 'read:'$li 阅读全文
posted @ 2017-01-16 10:03 大山山 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1、获取脚本所在目录 阅读全文
posted @ 2016-12-21 21:06 大山山 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 1、 把这迅雷的插件禁用后一切恢复正常。 2、 如何禁止迅雷监听? 其实是个驱动,从网络层监控了所有HTTP请求,如果是文件下载就拦截并且自动调用迅雷。迅雷安装目录的上一层目录有一个卸载程序,可以卸载这个功能。(这个目录一共有两个卸载程序,不是下图这个卸载程序,我已经卸载,所以是另外一个下图没有显示 阅读全文
posted @ 2016-12-15 18:15 大山山 阅读(522) 评论(0) 推荐(0) 编辑
摘要: { "selectors": [{ "parentSelectors": ["_root"], "type": "SelectorElementClick", "multiple": false, "id": "expand", "selector": "span.a-expander-prompt 阅读全文
posted @ 2016-10-13 14:11 大山山 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 1、opensuse的gnome默认使用nautilus作为文件浏览工具,若要设置文件的默认排序和视图,参考网页 https://thelinuxexperiment.com/change-the-default-sort-order-in-nautilus/ 阅读全文
posted @ 2016-09-20 18:45 大山山 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1、针对多行文本去除重复行,而不改变文本原来的顺序,即不通过排序的方式移除重复行 安装ShellCommand插件,全选文本,ctrl+alt+|调出shell执行终端,输入 awk '!x[$0]++',回车执行命令即可移除 2、移除超过三个单词的行 正则表达式:^(\w+ ){3,}\w+\n 阅读全文
posted @ 2016-09-18 17:39 大山山 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 有一个简单的python命令可以看到yum的 releaserver、arch、basearch的值 阅读全文
posted @ 2016-09-09 16:13 大山山 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1、printscreen全屏截图 2、ctrl+printscreen窗口截图 3、shift+printscreen选择截图 4、Ctrl+Alt+up arrow、Ctrl+Alt+down arrow 切换工作空间,工作空间相当于不同的屏幕一样 阅读全文
posted @ 2016-05-28 14:57 大山山 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 1、获取包含了特定后代节点的节点 //tbody/tr[./td/p[contains(text(),'创建:2016-05-20')]]/td[7]//td[2] //td[contains(@class, 'order-cell') and descendant::span[text()='B0 阅读全文
posted @ 2016-05-20 17:36 大山山 阅读(104) 评论(0) 推荐(0) 编辑