Answers for "bash use argument from previous command"

6

bash use argument from previous command

!^      first argument
!$      last argument
!*      all arguments
!:2     second argument

!:2-3   second to third arguments
!:2-$   second to last arguments
!:2*    second to last arguments
!:2-    second to next to last arguments

!:0     the command
!!      repeat the previous line
Posted by: Guest on November-29-2019

Code answers related to "bash use argument from previous command"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language