From c8a0fb46cc3834ea19554b497d59fdac55fc1e4e Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <3752022+BrainwreckedTech@users.noreply.github.com> Date: Tue, 11 Jan 2022 05:09:51 -0500 Subject: [PATCH] Sort output by HCIL --- scsictl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scsictl b/scsictl index 745c404..f1e84c5 100755 --- a/scsictl +++ b/scsictl @@ -35,7 +35,7 @@ case "${1}" in else DEVICE_SZ="${DEV_BYTES}B" fi - echo "${DEV_HCIL} ${DEV_PORT} ${BLOCKDEV} ${DEVICE_SZ} ${DEVICE_ID}" >> /tmp/bdmap + echo "${DEV_HCIL} ${DEV_PORT} ${BLOCKDEV} ${DEVICE_SZ} ${DEVICE_ID}" | sort -n >> /tmp/bdmap done column -N H:C:I:L,PORT,DEV,SIZE,NAME -t -R2,4 -o" " /tmp/bdmap rm /tmp/bdmap