From d2ba729c13813d4fd3180df0e90c4054f40038ac Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 1 Apr 2024 13:52:51 +0200 Subject: [PATCH] btrfs/bsl --- bash/btrfs.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 bash/btrfs.sh diff --git a/bash/btrfs.sh b/bash/btrfs.sh new file mode 100644 index 0000000..2513eda --- /dev/null +++ b/bash/btrfs.sh @@ -0,0 +1,7 @@ +function bsl { + if [ "${1}" ] ; then + btrfs subvolume list "${1}" \ + | cut -d ' ' -f 9 \ + | sort + fi +}