Skip to main content
4 of 4
edited tags
Gilles 'SO- stop being evil'
  • 865.5k
  • 205
  • 1.8k
  • 2.3k

Execute command on multiple files matching a pattern in parallel

Let's say I have a command accepting a single argument which is a file path:

mycommand myfile.txt

Now I want to execute this command over multiple files in parallel, more specifically, file matching pattern myfile*.

Is there an easy way to achieve this?

vonPetrushev
  • 803
  • 2
  • 11
  • 12