i***r 发帖数: 1035 | 1 如何快速找到以前用过的command?
比如我用过 awk ‘{。。。}’
随后用了其它command
现在我想再次用上面那个awk ‘{。。。}’
我现在的做法很笨,直接点向上的箭头直到awk出现,有时候要点很多次。有没有快捷
办法? |
A**u 发帖数: 2458 | |
n******7 发帖数: 12463 | |
b******n 发帖数: 107 | 4 Press Ctrl-r, then type awk |
i***r 发帖数: 1035 | 5 THANKS EVERYBUDY,
really helpful! |
f*********e 发帖数: 8453 | 6 history|grep awk
【在 i***r 的大作中提到】 : 如何快速找到以前用过的command? : 比如我用过 awk ‘{。。。}’ : 随后用了其它command : 现在我想再次用上面那个awk ‘{。。。}’ : 我现在的做法很笨,直接点向上的箭头直到awk出现,有时候要点很多次。有没有快捷 : 办法?
|
D******n 发帖数: 2836 | 7 ft, none mentioned key binding with history-search-backward.
【在 i***r 的大作中提到】 : 如何快速找到以前用过的command? : 比如我用过 awk ‘{。。。}’ : 随后用了其它command : 现在我想再次用上面那个awk ‘{。。。}’ : 我现在的做法很笨,直接点向上的箭头直到awk出现,有时候要点很多次。有没有快捷 : 办法?
|
f********y 发帖数: 120 | 8 !awk
【在 i***r 的大作中提到】 : 如何快速找到以前用过的command? : 比如我用过 awk ‘{。。。}’ : 随后用了其它command : 现在我想再次用上面那个awk ‘{。。。}’ : 我现在的做法很笨,直接点向上的箭头直到awk出现,有时候要点很多次。有没有快捷 : 办法?
|
C********s 发帖数: 120 | 9 !awk:p
没用过的话试试吧
【在 f********y 的大作中提到】 : !awk
|
i***r 发帖数: 1035 | 10 how? thanks
【在 D******n 的大作中提到】 : ft, none mentioned key binding with history-search-backward.
|
i***r 发帖数: 1035 | 11 this one is good. excite the last awk command
【在 f********y 的大作中提到】 : !awk
|
i***r 发帖数: 1035 | 12 this command only displays the last used awk command, in order to use it i
need to copy paste right?
【在 C********s 的大作中提到】 : !awk:p : 没用过的话试试吧
|
i***r 发帖数: 1035 | 13 really helpful!!
【在 f*********e 的大作中提到】 : history|grep awk
|