I have the following script I made from looking at Execute command on all files in a directory:
find /home/user/test/* -maxdepth 1 -type f -name '*.conf' -exec /home/user/program --config "{}" \;
I have a bunch of .conf
files in /home/user/test/
and I would like the program to run on all of these at once. The program is to simulate network traffic so runs constantly until stopped using Ctrl+C
.
If I manually open new screen sessions and run the command on each of the .conf
files separately it works fine however I am trying to figure our a way to only run the command once on all the .conf
files.
The script I wrote should apply to all files but it only seems to load just one. Any idea what I am doing wrong?