I want to create an alias in bash
like this:
alias tail_ls="ls -l $1 | tail"
Thus, if somebody types:
tail_ls /etc/
it will only show the last 10 files in the directory.
But $1
does not seem to work for me. Is there any way I can introduce variables in bash.