Search Results

Search: Posts Made By: Decstasy
2,056
Posted By Yoda
Any element of an array may be referenced using...
Any element of an array may be referenced using ${name[subscript]}

The braces are required to avoid conflicts with the shell’s expansion operators.

so try:-
echo ${os["$SYSOS"]}
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 07:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy