relpipe-data/examples/parallel-hashes-2.sh
branchv_0
changeset 294 abbc9bcfbcc4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/relpipe-data/examples/parallel-hashes-2.sh	Mon Feb 03 22:10:07 2020 +0100
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+findFiles() {
+	find /bin/ -print0;
+}
+
+fetchAttributes1() {
+	relpipe-in-filesystem \
+		--parallel 4 \
+		--file path \
+		--file type \
+		--file size \
+		--streamlet hash \
+			--option attribute md5 \
+			--option attribute sha1;
+}
+
+fetchAttributes2() {
+	relpipe-in-filesystem \
+		--parallel 4 \
+		--file path \
+		--file type \
+		--file size \
+		--streamlet hash \
+			--option attribute md5 \
+		--streamlet hash \
+			--option attribute sha1;
+}
+
+findFiles | fetchAttributes2 | relpipe-out-tabular