#!/bin/sh # Workaround for when locate doesn't accept --null. # Note: This should be "\n" with a real newline. IFS=" " for i in `locate -r '.*\.[mM]4[aA]'`; do ls -l ${i} done