| Bill Seivert 2006-11-30, 1:33 am |
| atishay wrote:
> I have a shell script in which i assign values to following 3 vars.
>
> lastModifiedMonth=`\echo ${sccsDate}|cut -d '/' -f 2`
> lastModifiedDate=`\echo ${sccsDate}|cut -d '/' -f 3`
> lastModifiedYear=`\echo ${sccsDate}|cut -d '/' -f 1
>
> if i have a test condition like following
> if [ "x${lastModifiedMonth}" != "x" -a "x${lastModifiedDate} !=
Missing a double quote following "x${lastModifiedDate}
> "x" -a "x${lastModifiedYear}" != "x" ] ; then
>
> i get following error in the script.
>
> listChanges.sh: syntax error at line 29: `end of file' unexpected
>
> i change it to
> if [ "x${lastModifiedMonth}" != "x" ] ; then
>
> now it works.
>
>
> What am in doing wrong?
>
> cheers..atishay
>
Bill Seivert
|