I am new to programming, so plz bear with the way I try to explain my problem (also any help regarding how to elegantly phrase the tile is welcome).
I have a bash script (say for example script1.sh
) that takes in arguments a
, b
and c
(another script). Essentially, argument c
for script1.sh
is the name of another script (let's say script2.sh
). However, script2.sh
takes in arguments d
,e
and f
. So my question is, how do I pass arguments to script1.sh
?? (example, ./script1.sh -a 1 -b 2 -c script2.sh -d 3 -e 4 -f 5
)
Sorry in advance if the above does not make sense, not sure how else to phrase it...