opasorthosts(8)
π opasorthosts β the glow-up your host list deserves π
okay so bestie, let me put you onto opasorthosts from the IFSFFCLIRG manual (section 8, we love a sysadmin era π).
This little icon sorts its standard input into a typical host name order and drops the result on standard output. Here's the tea: hosts get sorted alphabetically (case-insensitively, no cap) by whatever alpha-numeric prefix they've got, and then sorted numerically by any numeric suffix. Host names may end in a numeric field, and that field may optionally have leading zeros. So unlike a plain alphabetic sort (which is lowkey a mess π), this command gives you the intuitive sequencing of host names like: host1, host2, host10.
Heads up bestie: this command does NOT remove duplicates. Any duplicates are listed in adjacent lines. It's giving "i said what i said" π.
Use it to build mpi_hosts input files for applications or cable tests that place hosts in order by name. Main character energy fr fr. β¨
β¨ Syntax β¨
opasorthosts < hostlist> output_file
π Options π
--helpβ produces the full help text. literally the full thing, no crumbs.hostlistβ specifies the list of host names. yes queen, this is the input.output_fileβ specifies the sorted list output. the glow-up destination π¦
πΈ Examples πΈ
opasorthosts < host.xml > Sorted_host
π Standard Input
opasorthosts
osd04
osd1
compute20
compute3
mgmt1
mgmt2
login
π Standard Output
compute3
compute20
login
mgmt1
mgmt2
osd1
osd04
see how compute3 slides in before compute20? and osd1 before osd04? that's the whole vibe check passing. slay. π
π
Copyright(C) 2015-2019 Intel Corporation β and that's the whole page, bestie, opasorthosts(8), served fresh. periodt. π«Άβ
π¦ where this page comes from
- centos-stream 9: opa-fastfabric 1:10.12.1.0.6-1.el9 Β· BSD or GPLv2
- debian bookworm: opa-fastfabric 10.10.3.0.11-1+b1 Β· BSD-3-clause-top
- debian trixie: opa-fastfabric 10.10.3.0.11-1+b2 Β· BSD-3-clause-top
- opensuse-leap 16.0: opa-fastfabric 10.14.4.0.20-160000.3.2 Β· BSD-3-Clause OR GPL-2.0-only
- ubuntu jammy: opa-fastfabric 10.10.3.0.11-1ubuntu1 Β· BSD-3-clause-top
- ubuntu noble: opa-fastfabric 10.10.3.0.11-1ubuntu3 Β· BSD-3-clause-top
- ubuntu questing: opa-fastfabric 10.10.3.0.11-1ubuntu3
- ubuntu resolute: opa-fastfabric 10.10.3.0.11-1ubuntu4 Β· BSD-3-clause-top
- ubuntu stonking: opa-fastfabric 10.10.3.0.11-1ubuntu5 Β· BSD-3-clause-top
- Copyright 2015-2019, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms