How to repeat the arguments of the previous command in Linux Bash

Опубликовано: 01 Апрель 2020
на канале: PaBlo Tech
32
0

Nearly everyone knows the bash !! command which repeats your entire last command. In addition you can use !* which will repeat only the arguments of your last command.

$~ touch file1 file2 file3
$~ chmod 777 !*