|
|
|
|
|
by m2f2
6 days ago
|
|
I usually skip the get option builtin, and use : as... while : ; do
case "$1" in
"") break;;
-f|-foo) shift; whatever;;
*) usage; exit 1;;
esac
done For this... instead if something; then
true
else
echo ERROR
exit 1
fi
Using : would be too much here.For anything else including json etc. I usually go to duckdb. Awesome support, single file install, readable, easy to maintain. Powershell on Linux or Unix? Just another huge dependency if you manage 1000s of machines, and good luck finding a Linux gal/guy wanting or able to touch pwsh without chemical grade gloves. |
|