Saturday, May 4, 2024
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 2045  / 3 Years ago, sat, october 23, 2021, 11:04:46

Is there a way to sort the results from apt-cache search <keywords>?


More From » command-line

 Answers
2

Pipe the result to sort:



apt-cache search keyword | sort


The vertical bar is called pipe. It takes the output from apt-cache and transfers it to the input of sort.


[#43628] Sunday, October 24, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ledeball

Total Points: 434
Total Questions: 121
Total Answers: 120

Location: Antigua and Barbuda
Member since Sat, Apr 24, 2021
3 Years ago
;