有什么相对小众(你自己觉得)的 bash 命令/语法,你觉得很好用的呢?
資深大佬 : ChristopherWu 2
我分享一个: https://tldp.org/LDP/abs/html/process-sub.html Process Substitution,可以将命令输出作为输入传给另一个命令
大佬有話說 (5)
我分享一个: https://tldp.org/LDP/abs/html/process-sub.html Process Substitution,可以将命令输出作为输入传给另一个命令
character-search-backward (M-C-])
A character is read and point is moved to the previous occurrence of that character. A negative count searches for subsequent occurrences.
“`
比如说有命令如下,现在正处于光标开头:
echo abc012
想快速定位到 “1” 的位置,则可以按下:Ctrl-] 1 ;
此时光标处于 “1” 的位置,如果再想定位到 “a”,则可以按下:Ctrl-Alt-] a 。