lb,lbc,lbo

This commit is contained in:
Marc Beninca 2024-11-16 15:53:58 +01:00
parent 5af5181aa4
commit ca0399d4f3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,12 +1,27 @@
# list block devices
alias lb="\
lsblk \
--output \"NAME,SIZE,TYPE,FSTYPE,LABEL,MOUNTPOINTS\" \
--noempty \
"
lb() {
lbo \
"SIZE" \
"TYPE" \
"FSTYPE" \
"LABEL" \
"MOUNTPOINTS"
}
# list block devices (old)
alias lbo="\
lsblk \
--output \"NAME,SIZE,TYPE,FSTYPE,LABEL,MOUNTPOINT\" \
"
# common arguments
lbc() {
lsblk \
--noempty \
"${@}"
}
# output arguments
lbo() {
local argument
local arguments="NAME"
for argument in "${@}"; do
arguments="${arguments},${argument}"
done
lbc \
--output "${arguments}"
}