ethsorthosts(8)
β¨ NAME β¨
ethsorthosts β it's giving host-name-sorting icon, bestie π
Okay so real talk: this bad boy reads from stdin, sorts it in the typical host name order, and drops the result on stdout. No cap.
Hosts get sorted alphabetically (and case-insensitively, thank you very much) by any alpha-numeric prefix, and then sorted numerically by any numeric suffix. Host names may end in a numeric field, which may optionally have leading zeros. Unlike a pure alphabetic sort (booo π ), 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. So if you see the same host twice, that's not a glitch, that's just what it does, fr fr.
Use this command to build mpi_hosts input files for applications that place hosts in order by name. Main character behavior honestly π
π¦ SYNTAX π¦
ethsorthosts < hostlist> output_file
π OPTIONS π
--helpβ produces full help text. The little "hi, here's everything" moment β¨hostlistβ specifies the list of host names. This is your lineup, your squad, your roster πΈoutput_fileβ specifies the sorted list output. Where the glow-up lands π
π₯ EXAMPLES π₯
Like, here's the whole vibe in one line:
ethsorthosts < host.xml > Sorted_host
π Standard Input
ethsorthosts
osd04
osd1
compute20
compute3
mgmt1
mgmt2
login
π Standard Output
compute3
compute20
login
mgmt1
mgmt2
osd1
osd04
See that?? osd1 before osd04, compute3 before compute20 β the way it just understands numeric suffixes is so iconic. A plain alphabetic sort could never πβ¨
And that's the whole page, bestie! This one comes to you from the EFSFFCLIRG man page, written by Intel Corporation, copyright Copyright(C) 2020-2024, with the page dated 2020-2024. Slay, go sort some hosts, ily π«Άπ
π¦ where this page comes from
- centos-stream 9: eth-tools-fastfabric 1:12.1.0.0-4.el9 Β· BSD
- fedora 43: eth-tools-fastfabric 1:12.1.0.0-151.fc43 Β· BSD-3-Clause
- fedora 44: eth-tools-fastfabric 1:12.1.0.1-6.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: eth-fastfabric 11.7.0.0-160000.2.2 Β· BSD-3-Clause OR GPL-2.0-only
- Copyright 2020-2024, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms