View difference between Paste ID: xNdzTKHC and uYZZvJtn
SHOW: | | - or go back to the newest paste.
1
#!/bin/sh
2
OLD_IFS=$IFS
3
IFS=$'\n'
4
for dataset in `zfs list -H | cut -f 1`
5
do
6-
    zfs get all $dataset > ~/Desktop/ZFS\ file\ system\ properties.txt
6+
    zfs get all $(printf '%q' $dataset) > ~/Desktop/ZFS\ file\ system\ properties.txt
7
done
8
IFS=$OLD_IFS