Using myscript mydir/*
I don't understand why bash is processing only the first element with the code below.
#!/bin/bash
files="$1"
for f in "$files"; do
echo "Processing $f"
done
What do I miss so that I can process a list of files given as an argument to the script?