Shell/Bash: bash use argument from previous command Example

By

Shell/Bash Example: This is the "bash use argument from previous command" Example. compiled from many sources on the internet by SimpleTutorials.org

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


* Summary: This "bash use argument from previous command" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others