Bug 256774 - gstat: selectable sort columns
Summary: gstat: selectable sort columns
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Alan Somers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-22 14:04 UTC by Alan Somers
Modified: 2022-07-24 16:41 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Somers freebsd_committer freebsd_triage 2021-06-22 14:04:30 UTC
I very often do 'gstat | sort -rn -k9 | head' in order to see which of my disks is busiest.  It would rock my world if gstat could do the sorting itself, and do it in interactive mode.  Using the "o" key to select sort column, like top does, would work.  So would a command line switch.
Comment 1 Alan Somers freebsd_committer freebsd_triage 2022-07-24 16:41:43 UTC
I tried to implement this, but it was pretty hard.  There were other features that I wanted too that were hard to implement.  So I rewrote gstat instead.  The rewrite is in ports at sysutils/gstat-rs .