Search Results

Search: Posts Made By: Doug97
5,856
Posted By Doug97
Can't stop shell interpreting special characters
I am struggling with the following sample code:

array1=(a b c d)
array2=(* * * *)

print ${array1[2]}
print ${array2[2]}

It returns 'c' and the name of a file in the directory I'm in.

I...
Showing results 1 to 1 of 1

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