mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 11:36:16 +01:00
7 lines
241 B
Bash
7 lines
241 B
Bash
# -*- mode: shell-script -*-
|
|
function get_old_datasets()
|
|
{
|
|
dataset="$1"
|
|
zfs list "$dataset" -t filesystem -r -H -o name | xargs -I {} @runtimeShell@ -c 'echo "$1" | rev | cut -f 1 -d "/" | rev' sh {} | grep -v "$(basename "$dataset")"
|
|
}
|