referring to arguments in bash aliases

Timothy Stone citylists at petmystone.com
Thu Mar 4 07:59:07 UTC 2004


List,

tcsh user moving to bash.

What is the bash equivilent to:

alias llm 'ls -l \!* | less'

I got this far:

alias llm="ls -l | less"

How do I perform things like: \!*, \!^, \!$, \!:n ? Is it as simple as 
$1? How do I refer to the first or last arguments (\!^ and \!$ in tcsh)?

Many thanks in advance,
Tim





More information about the redhat-list mailing list