Reputation: 531
I am trying to write a bash script which can get all the file names from a folder and execute another Python script which takes one file name at a time.
How do I do that?
Upvotes: 1
Views: 49
Reputation: 1477
for file in /path/* do python main.py "$file" done
Upvotes: 3