Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: grahamperrin on Jan 15th, 2013  |  syntax: Bash  |  size: 0.18 KB  |  views: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data