aboutsummaryrefslogtreecommitdiffstats
path: root/zdest.pl
diff options
context:
space:
mode:
Diffstat (limited to 'zdest.pl')
-rwxr-xr-xzdest.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/zdest.pl b/zdest.pl
new file mode 100755
index 0000000..b49a1b9
--- /dev/null
+++ b/zdest.pl
@@ -0,0 +1,7 @@
+#!/usr/bin/env perl
+
+while (<>) {
+ my ($fs) = split /\s+/;
+ print "Destroying $fs\n";
+ system "zfs destroy $fs";
+}