execall

NAME
        execall

SYNOPSIS
        execall COMMAND FILE1 [FILE2 [...]]

DESCRIPTION
        execute COMMAND for all files listing as arguments (FILE1, ...)

Use case:

 $ execall ls file1 file2
file1
file2
 $ execall cat file1 file2
computational
chemistry
rocks!
marry
had
a little
lamb
 $ execall "ls -l" file1 file2
-rw-r--r-- 1 gmonard users 31 Apr 17 09:39 file1
-rw-r--r-- 1 gmonard users 24 Apr 17 09:39 file2

Commands to include in your bash script: shift, bash -c