relpipe-data/examples/runnable-jars.sh
author František Kučera <franta-hg@frantovo.cz>
Sun, 09 May 2021 00:06:13 +0200
branchv_0
changeset 323 e2d607e4a4f4
parent 294 abbc9bcfbcc4
child 329 5bc2bb8b7946
permissions -rwxr-xr-x
release-v0.18.sh: run apt install only once + small fixes and improvements

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