Unix Shell - Re: can anyone see the error in this script please I am BASHing my

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > March 2006 > Re: can anyone see the error in this script please I am BASHing my





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: can anyone see the error in this script please I am BASHing my
Ed Morton

2006-03-11, 5:51 pm

Mike wrote:

> Janis Papanagnou wrote:
>
>
>
> I have tried that, no difference, problem seems to be with this line
> if ["${line:0:1}" -ne ',']
> If it reads a "," (a comma) it gives the following error
> /tides.sh: line 7: [,: command not found
> Mike..
>
>


put white space after [ and before ]. IIRC, there's a discussion on this
in the FAQ....

Ed.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com