Printing a 2 column output using scripts

Hi, I'm fairly new to scripting and Unix. I'm having trouble printing the number of directories and number of files in all the directories in 2 columns using scripts.

#!/bin/bash

echo  "# of Directories --------- # of Messages/Files "
numDir= $(find . -type d | wc -l)

numMsg= $(find . -type f | wc -l)

echo " $numDir ----------- $numMsg "

Everytime I try to run it using ./count.bash, it gives me an error of

Can anyone help me?

No spaces around the `='

numDir=$(find . -type d | wc -l)

numMsg=$(find . -type f | wc -l)

I LOVE YOU :b:

I am taken. :wink:
Glad to help.
By the way, I like your handle: nuclearpenguin

You could use printf to help format you output a little better:

FMT="%16s -------- %-19s\n"

printf "$FMT" "# of Directories" "# of Messages/Files"
numDir=$(find . -type d | wc -l)
numMsg=$(find . -type f | wc -l)
printf "$FMT" $numDir $numMsg

Output would end up like this:

# of Directories -------- # of Messages/Files
              12 -------- 108

See how the -19s format is 19 wide left-justified and 16s is 16 wide right-justified.