Sort output by HCIL

master
BrainwreckedTech 3 years ago
parent 40eeebb3da
commit c8a0fb46cc

@ -35,7 +35,7 @@ case "${1}" in
else else
DEVICE_SZ="${DEV_BYTES}B" DEVICE_SZ="${DEV_BYTES}B"
fi 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 done
column -N H:C:I:L,PORT,DEV,SIZE,NAME -t -R2,4 -o" " /tmp/bdmap column -N H:C:I:L,PORT,DEV,SIZE,NAME -t -R2,4 -o" " /tmp/bdmap
rm /tmp/bdmap rm /tmp/bdmap

Loading…
Cancel
Save