Untitled
public text v1 · immutable#!/bin/bash
CMD="$*"
CMD="${CMD/--separator ,/--separator #}"
if [[ "$*" != "$CMD" ]]
then
/sbin/lvm lvs ${CMD} | sed -r -e 's/,/+/g' -e 's/#/,/g'
else
exec /sbin/lvm lvs $*
fi
#!/bin/bash
CMD="$*"
CMD="${CMD/--separator ,/--separator #}"
if [[ "$*" != "$CMD" ]]
then
/sbin/lvm lvs ${CMD} | sed -r -e 's/,/+/g' -e 's/#/,/g'
else
exec /sbin/lvm lvs $*
fi