Question : Unix Rookie syntax question

I'm trying to write my first somewhat meaningful Korn Shell script and am just having some rookie syntax issues.

It's telling me the following:

[[M: not found [No such file or directory]
Gender: not found [No such file or directory]

they are occurring on lines inside my if, else, fi onstruct

Help?

Thanks!

DTXCF
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
#!/bin/ksh
exec 3
           
Open in New Window Select All

Answer : Unix Rookie syntax question

Hi,
leave spaces around the '[[' and ']]' !
wmp

Random Solutions  
 
programming4us programming4us