最終更新 1743905496

Немного полезных CLI команд в bash про повторение аргументов

LittleGreenCat's Avatar LittleGreenCat revised this gist 1743905496. Go to revision

1 file changed, 21 insertions

bash.md(file created)

@@ -0,0 +1,21 @@
1 + `!^` first argument|
2 +
3 + `!$` last argument
4 +
5 + `!*` all arguments
6 +
7 + `!:2` second argument
8 +
9 + `!:2-3` second to third arguments
10 +
11 + `!:2-$` second to last arguments
12 +
13 + `!:2*` second to last arguments
14 +
15 + `!:2-` second to next to last arguments
16 +
17 + `!:0` the command
18 +
19 + `!!` repeat the previous line
20 +
21 + Опубликовано в https://t.me/gitgate
Newer Older