Processing batches of files at a time

Hi

I would like to run my script to process as many as 50 files at a time.

Currently my script is being called like so:

 
./import.sh -f filename
 

so I want to call my script in this way and it must execute every file in the directory

 
/var/local/dsx/import
 

how can I do this?

for filename in /var/local/dsx/import/*
do
  /path/to/import.sh -f $filename
done