relpipe-data/examples/parallel-hashes-2.sh
branchv_0
changeset 294 abbc9bcfbcc4
equal deleted inserted replaced
293:b862d16a2e9f 294:abbc9bcfbcc4
       
     1 #!/bin/bash
       
     2 
       
     3 findFiles() {
       
     4 	find /bin/ -print0;
       
     5 }
       
     6 
       
     7 fetchAttributes1() {
       
     8 	relpipe-in-filesystem \
       
     9 		--parallel 4 \
       
    10 		--file path \
       
    11 		--file type \
       
    12 		--file size \
       
    13 		--streamlet hash \
       
    14 			--option attribute md5 \
       
    15 			--option attribute sha1;
       
    16 }
       
    17 
       
    18 fetchAttributes2() {
       
    19 	relpipe-in-filesystem \
       
    20 		--parallel 4 \
       
    21 		--file path \
       
    22 		--file type \
       
    23 		--file size \
       
    24 		--streamlet hash \
       
    25 			--option attribute md5 \
       
    26 		--streamlet hash \
       
    27 			--option attribute sha1;
       
    28 }
       
    29 
       
    30 findFiles | fetchAttributes2 | relpipe-out-tabular