Fix right-justification of columns

master
BrainwreckedTech 3 years ago
parent 6cad5c85c0
commit a4342fd525

@ -38,7 +38,7 @@ case "${1}" in
echo "${DEV_HCIL} ${DEV_PORT} ${BLOCKDEV} ${DEVICE_SZ} ${DEVICE_ID}" >> /tmp/scsictl echo "${DEV_HCIL} ${DEV_PORT} ${BLOCKDEV} ${DEVICE_SZ} ${DEVICE_ID}" >> /tmp/scsictl
done done
sort -n -o /tmp/scsictl /tmp/scsictl sort -n -o /tmp/scsictl /tmp/scsictl
column -N H:C:I:L,PORT,DEV,SIZE,NAME -t -R2,4 -o" " /tmp/scsictl column -N H:C:I:L,PORT,DEV,SIZE,NAME -t -R1,4 -o" " /tmp/scsictl
rm /tmp/scsictl rm /tmp/scsictl
;; ;;
*) echo "Unknown verb '${1}' -- expected delete, list, or rescan"; exit 1;; *) echo "Unknown verb '${1}' -- expected delete, list, or rescan"; exit 1;;

Loading…
Cancel
Save