Here is a basic bash script that will generate md5 hashes for all files in the current directory:
#!/bin/bash
for file in *
do
md5sum "$file"
done
This script will loop through all files in the current directory and generate the md5 hash for each file using the md5sum command. The output will be in the format <md5 hash> <file name>, with one line for each file.