diff -r b862d16a2e9f -r abbc9bcfbcc4 relpipe-data/examples/runnable-jars.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/relpipe-data/examples/runnable-jars.sh Mon Feb 03 22:10:07 2020 +0100 @@ -0,0 +1,22 @@ +#!/bin/bash + +findFiles() { + find ~/.m2/ -iname '*.jar' -printf '%p\0'; +} + +fetchAttributes() { + relpipe-in-filesystem \ + --parallel 4 \ + --file path \ + --streamlet jar_info; +} + +filterRunable() { + relpipe-tr-awk --relation '.*' --where 'main_class'; +} + +shortenPath() { + relpipe-tr-sed '.*' 'path' "^$HOME/?" "~/"; +} + +findFiles | fetchAttributes | filterRunable | shortenPath | relpipe-out-tabular