Hi everyone! Hope you're ll having a nice life!
First, sorry if this isn't the right place to post this. 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: Select all
apt-cache search pkg_name | sort | less
I tried different ones but none work as expected. For example, I tried
Code: Select all
alias cearch="apt-cache search $2 | sort | less"
Where $2 is pkg_name is this ok? This returns "no such pkg or dir" ... 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: don't work. Thanks in advance for your answers.