>want to write a bash script
>argument parsing in bash is fucking trash so i just do it in node javascript
>>57252735
>just do it node javascript
>node javascript
>node
This is bait, right? No one would use node javascript when they have perl.
>>57252749
I never learned pearl
look up python
>>57252757
It's time to fuckin learn some perl then
Scripting language of champions
>>57252800
what advantages does it have over javascript running from within V8 runtime environment?
>argument parsing in bashwhile getopts "fnjbhxzgmuvcys:i:r:" option
do
case $option in
h ) helptext
exit 0
;;
v ) echo $SCRIPTVERSION
exit 0
;;
c ) cleanarchive
exit 0
;;
i ) PACKAGENAME=${OPTARG}
;;
u ) update
exit 0
;;
s ) PACKAGENAME=${OPTARG}
findpackage
exit 0
;;
f ) SKIPCHECK="1"
;;
g ) SKIPBUILD="1"
;;
n ) SKIPDEP="1"
;;
m ) SKIPINSTALL="1"
;;
z ) MDCHECK="1"
;;
x ) PARSESLACK=1
;;
* ) noopts
exit 0
;;
esac
done
Literally the easiest thing ever. Why are you so trash?
>>57253522
>getopts
'no'
>>57252735
Is Node.JS just as useful in a GNU/Linux environment like Python is?
>>57252814
its not botnet
>>57252735
>>57252749
>node javascript
>perl
try python faggots
I've used PHP for some quick scripts.
It just has such a big library of functions that (sometimes) do what you want.
>>57252735
Couldn't you choose something shittier for your scripts? Jesus fuck these webdevs.
>>57252735
there is no shame in writing little cli tools in node. I do it all the time.
They are more portable than python and bash ones.
I used C to write a bash script.
>>57254323
so you wrote a C program that would write your bash script?
>>57254479
Yes
>>57252735
what do you mean by argument parsing?
>>57253620
what's wrong with getopts?