From 42b2e79fd3eceb0ef0611818b166f18179b94128 Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Thu, 28 Sep 2023 22:19:39 -0500 Subject: [PATCH] Add files via upload --- OSX/osx-zfs-extended-attribs-demo.sh | 59 ++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 OSX/osx-zfs-extended-attribs-demo.sh diff --git a/OSX/osx-zfs-extended-attribs-demo.sh b/OSX/osx-zfs-extended-attribs-demo.sh new file mode 100644 index 0000000..f900a79 --- /dev/null +++ b/OSX/osx-zfs-extended-attribs-demo.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +>sessionbuddymd5.txt +for f in session*; do + md5sum "$f" >> sessionbuddymd5.txt +done +cat sessionbuddymd5.txt + +while read linein; do + part1=$(echo $linein |awk '{print $1}') + part2=$(echo $linein |awk '{print $2}') + echo $part1 + xattr -w com.myzfs.md5sum "$part1" "$part2" +done