Special BASH chars
eharetea

A list of some of the special characters in BASH and their functions.

BASH!

Date Created:Sunday March 11th, 2007 02:38 PM
Date Modified:Saturday August 02nd, 2008 04:10 PM

!$ = last field of last command
!* = all of last command
!*:p = print the last command without executing
!$:r = print the last field and strip off the extension
!! = print and run last command

$# = number of arguments
$@ = arguments
$* = all arguments passed to a program or typed on the command line
$? = the exit status of the last command executed