I want to create an alias in bash as follows:
alias tail_ls="ls -l $1 | tail"
Thus, if someone is like:
tail_ls /etc/
it will only display the last 10 files in the directory.
But $1 doesn't seem to work for me. Is there any way to introduce variables into bash.
linux bash
Deepank Gupta Dec 14 '10 at 10:29 2010-12-14 10:29
source share