[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

referring to arguments in bash aliases



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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]