relpipe-data/examples/parallel-hashes-2.sh
author František Kučera <franta-hg@frantovo.cz>
Sat, 06 Jun 2020 13:22:57 +0200
branchv_0
changeset 300 b9bd0f06b4a1
parent 294 abbc9bcfbcc4
permissions -rwxr-xr-x
MySQL seems to works well even with libmyodbc5a.so not only libmyodbc5w.so ODBC driver

#!/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