rwx/sh/fs/lsblk.sh
Marc Beninca 173f842b9a
All checks were successful
/ job (push) Successful in 2m54s
for/in
2025-08-02 10:05:13 +02:00

33 lines
468 B
Bash

# handle block devices
# list block devices
#= lb
rwx_list_block() {
rwx_list_block_output \
"SIZE" \
"TYPE" \
"FSTYPE" \
"LABEL" \
"MOUNTPOINTS"
}
# base arguments
#| lsblk
#= lbne
rwx_list_block_no_empty() {
lsblk \
--noempty \
"${@}"
}
# output arguments
#= lbo
rwx_list_block_output() {
local argument
local arguments="NAME"
for argument; do
arguments="${arguments},${argument}"
done
rwx_list_block_no_empty \
--output "${arguments}"
}