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 $(printf '%q' $dataset) > ~/Desktop/ZFS\ file\ system\ properties.txt
  7. done
  8. IFS=$OLD_IFS