sort-fields
and sort-numeric-fields
work great; but the field separator is whitespace. I would like to use a different delimiter (e.g.: [colon-char]).
I want this feature because I find myself resorting the passwd
files records by UID via vipw
.
I suppose I could start a shell and run something like sort -n -t ':' -k3 /etc/passwd
and replace; but that seems clumsy and sort-numeric-fields
is tantalizingly close to perfect.