A simple trick to use to force grep to always emit a file name, even in the unpredicatable case when there is only one file: append "/dev/null" to your arg list: grep pat $* /dev/null Chuck Collins