referring to arguments in bash aliases

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

 



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


-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux