Jerry Peek从1980年代初期开始使用UNIX系统。他是UNIX和VMS方面的顾问,开发并教授UNIX课程,是O’Reilly & Associates的资深作者。
原文摘录
· · · · · ·
!! repeats the last command.
!: repeats the last command. This form is used if you want to add a modifier (Section 28.5) like the following:
% echo xy
xy
% !:s/xy/yx
echo yx
yx
The second ! was left out.
!so repeats the last command that starts with so.
!?fn? repeats the last command that has fn anywhere in it. The string could be found in an argument or in the command name. This is opposed to !fn, in which !fn must be in a command name. (The last ? need not be there. Thus !?fn means the same thing.)
!34executes command number 34. You can find the appropriate history number when you list your history using the history command, or by putting the history number in your prompt (Section 4.3).
!! & adds an ampersand (&) to the end of the last command, which executes it and places it... (查看原文)
0 有用 FunH@rse™ 2009-01-13 12:43:33
tricky
0 有用 蝉 2014-03-13 20:25:09
: TP316.81
0 有用 许长经 2019-12-13 09:42:24
unix 工具类讲的最清楚的。
0 有用 LipingTaBaBa 2008-04-05 15:35:40
适合上厕所翻着看
1 有用 hualong 2019-02-15 19:01:19
购买的第三版(台)平时做为参考书。不错