Issue
I am trying to sort the output of apt-cache search. Here is what I have currently;
sch ()
{
apt-cache search $1
sort -nr
}
When I run this it works but will not return me to the command prompt so I can type another command.
Can anyone complete this or show me a better way. TIA.
Solution
sch(){
apt-cache search "$1" | sort -nr
}
You missed quotes and pipe |
Answered By - Gilles Quenot Answer Checked By - Marie Seifert (WPSolving Admin)