Hi everyone! Hope you're ll having a nice life!
I have a bunch of aliases, I know how to create an alias. Thing is, I've been trying to have an alias for
I tried different ones but none work as expected. For example, I tried
where $2 is pkg_name but this search the entire cache not only pkg_name ... hmmm ... I tried a few other variants but can't remember now, however, none of them work as expected. Is there a way to get it done? It can be a function too, which I also tried with the same results. Thanks in advance for your answers.
I have a bunch of aliases, I know how to create an alias. Thing is, I've been trying to have an alias for
Code:
apt-cache search pkg_name | sort | less
Code:
alias cearch="apt-cache search $2 | sort | less"