bash question about variables
I'm trying to write a .sh script that allows me to run multiple other .sh scripts at once.
My problem occurs within a Variable:
I have set
S1 to S7 to be the name of the .sh
C="$S$A" <- and this is where my problem is
I want C to be the content of S7 till S1 but if I run this line it will of course look for the content of S and link it with the content of A.
How can I correct this?
Thank you in advance.
if [ $B != "S0" ]; then
echo "$C has been started";
Because I'm using A=$[$A-1] in my code and want C to get the names from S7 to S1.
I'll edit the code into my first post ^^
The syntax you want to use is simply no possible. Usng arrays might be an option as suggested by macemoneta.
Check the link in my signature.
Thank you it works perfectly fine now ^^
Moved to Programming
|All times are GMT -5. The time now is 04:38 PM.|