11-18-07 12:45 PM
On Nov 18, 6:27 pm, "mallin.shetland" <mallin.shetl...@aol.com> wrote:
> wizard scrisse:
>
>
> Try:
>
> cd /tmp ;
It is already as
cd /tmp
It works fine on a command line if I do it, but fails inside the
script. I can't understand why.
Also, I tried the following command in a bash script:-
cmdOutput=`find /tmp -type f -or -type l | grep wizkid`
echo $cmdOutput
It gives me the following error:-
/usr/bin/find: paths must precede expression
Usage: /usr/bin/find [path...] [expression]
whereas, this runs fine on the command line.
[ Post a follow-up to this message ]
|