Fix right-justification of columns
This commit is contained in:
2
scsictl
2
scsictl
@@ -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;;
|
||||||
|
|||||||
Reference in New Issue
Block a user