Sorts its standard input in a typical host name order and sorts to standard output. Hosts are sorted alphabetically (case-insensitively) 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, this command results in intuitive sequencing of host names such as: host1, host2, host10.
This command does not remove duplicates; any duplicates are listed in adjacent lines.
Use this command to build mpi_hosts input files for applications that place hosts in order by name.
ethsorthosts < hostlist> output_file
Produces full help text.
Specifies the list of host names.
Specifies the sorted list output.
ethsorthosts < host.xml > Sorted_host
- Standard Input
- Standard Output