Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.5k
  • 205
  • 1.8k
  • 2.3k
edited title
Link
Stéphane Chazelas
  • 585.1k
  • 96
  • 1.1k
  • 1.7k

Execute command on multiple files matching a pattern in parallel

added 4 characters in body; edited tags
Source Link
cuonglm
  • 158.2k
  • 41
  • 342
  • 420

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*myfile*. 

Is there an easy way to achieve this?

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?

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?

Source Link
vonPetrushev
  • 803
  • 2
  • 11
  • 12
Loading