syntax error in bash
Hi everybody;
I guess it's a very easy to solve problem but I could not find its solution.I would like to get a string from user , and I wrote this: Code:
#!/bin/bash firstAt: line 10: if[create_table == create_table]: command not found firstAt: line 11: syntax error near unexpected token `then' firstAt: line 11: ` then' I am using Fedora 4.Is there any suggestion for solution ? |
You have to use spaces:
Code:
if [ $command == "create_table" ] Code:
if<space>[<space>expression<space>] |
Quote:
|
All times are GMT -5. The time now is 02:23 PM. |