![]() | 1 krizex 2015-05-14 08:56:46 +08:00 -a, --all do not ignore entries starting with . 不忽略以.开头的项 |
![]() | 2 krizex 2015-05-14 08:57:16 +08:00 LZ我的英语水平是4级。。。 |
3 blank4me 2015-05-14 08:59:58 +08:00 我比较在意有没有机智的方法直接调跳到-a 直接搜索太慢了,经常搜到奇奇怪怪的地方,比如什么--add之类的 |
![]() | 5 foxni 2015-05-14 09:03:21 +08:00 有些时候不得不看,所以就慢慢看喽。。。看着看着就习惯了。 |
![]() | 6 Septembers 2015-05-14 09:06:56 +08:00 敲着敲着就变下意识了 |
![]() | 7 |
8 Myarms OP 不好意思,忘了贴上来 expression [-a] expression Conjunction of primaries; the AND operator is implied by the juxtaposition of two primaries or made explicit by the optional -a operator. The second expression shall not be evaluated if the first expression is false. |
9 Myarms OP 我打错了是find |
10 kingwrcy 2015-05-14 09:16:46 +08:00 ![]() |
11 Myarms OP @kingwrcy 这个不错,感谢。 provides examples of common uses of command line tools. |
12 TimLang 2015-05-14 09:24:48 +08:00 实在看不懂去买本 linux命令行大全吧,常用命令肯定都有详细的解释。 |
13 stormslowly 2015-05-14 09:26:25 +08:00 ``` man ls | col -bx > ls.man.page.txt ``` 用自己喜欢的编辑查看man page的内容吧。。。 |
![]() | 14 xi4oh4o |
15 lavande 2015-05-14 10:09:00 +08:00 有些man写得感觉很晦涩,还是google一下具体用法比较舒服…… |
![]() | 16 Jaylee 2015-05-14 10:09:55 +08:00 cheat |
![]() | 17 zhoulujue 2015-05-14 10:13:23 +08:00 man page 里首先看 examples,再结合用法description,基本上几分钟就能找到你要的功能了。但是有一些命令是没有example的。。。 |
19 abscon 2015-05-14 10:30:09 +08:00 @newborn 根据他的回复,他显然知道你说的这些。他不知道的是 \< \>这种用法。 要用 \> 把 -a 截断,否则会匹配到 --add -all 之类的 |
20 xxx027 2015-05-14 13:14:20 +08:00 偶尔会用用这个: http://linux.51yip.com/ : ) |
21 Linusyeung 2015-05-14 14:30:19 +08:00 via iPhone 学习了… 我都是直接刷英文… 先看例子,别急躁… |
22 blank4me 2015-05-14 14:51:37 +08:00 @abscon 实测不行诶,搜gcc里的-g,输入/-g\>显示pattern not found。 \>这种用法不是vim才有的? |
23 blank4me 2015-05-14 15:02:16 +08:00 ![]() @abscon http://unix.stackexchange.com/questions/67063/exact-match-in-regrex-when-using-vim-man-or-less less貌似是用\b代替vim里的\> 谢谢你给的思路,感觉被拯救了一大截 T_T |
![]() | 24 byron 2015-05-14 15:24:51 +08:00 cheat |
![]() | 25 byron 2015-05-14 15:26:13 +08:00 cheat 你值得拥有。 |
26 abscon 2015-05-14 15:26:19 +08:00 ![]() @blank4me 正则表达式中用 \b 表示词边界是 Perl 风格,用 \< \> 则是 vim 风格。 你说实测不行,说明你系统上的 less 用的 regex 是 Perl 的。但我的系统上 less,grep,和 vim 都是统一用 \< \>。 我用的是 FreeBSD。刚才也实测了一下Linux, CentOS 5.4 上 less 也是 \< \>,CentOS 6.4 的则是 \b |
![]() | 27 ilotuo 2015-05-14 16:00:12 +08:00 为毛我osx /-a\> /-a\b 都不行 |
28 lsmgeb89 2015-05-14 16:18:40 +08:00 这英文算不算难的,提高下英语水平。 |
29 bonefish 2015-05-14 18:26:20 +08:00 ![]() https://github.com/idank/explainshell 很酷的工具, 把命令输进去,立刻把整条命令解释出来。比如: http://explainshell.com/explain?cmd=ls+-a |
![]() | 30 zhengkai 2015-05-14 18:45:58 +08:00 @bonefish 不错,可我试了一个给解释错了 http://explainshell.com/explain?cmd=wget+-rmnp+http%3A%2F%2Fwww.163.com 其实 -np 是一个参数,结果给解释成 -p 和一个未知的 -n 虽然参数格式是奇怪了点,但是 wget 也算常见工具了 |
31 bonefish 2015-05-14 19:06:29 +08:00 @zhengkai 看来对多字母支持不好,或许你可以提交个bug,已经有个类似的bug report: Does not recognise multi-letter GCC options https://github.com/idank/explainshell/issues/113 |
![]() | 32 lzmbbg 2015-05-14 21:25:24 +08:00 man page不是有个中文么。 |
34 sadhen 2015-05-15 17:29:20 +08:00 |