variable comparison problem in script
Dear all,
In my script ( run_scr.sh )I wrote the following to count the filenumber of the current directory and if total file is 6 then run show.sh file that contain 'HelloWorld'.
#!/bin/bash
morad=$(ls |wc -l)
if [${morad} -eq 6];
then
./show.sh
fi
when I run the script, it says that
[oracle@rmancat scr_test]$ ./run_scr.sh
./run_scr.sh: line 2: [6=6]: command not found
Please help me..
Regards,
Morad.
|