I would like to do something like this:
find -name "foo*" | python main.py
and access all the files that were found by the find program. How do I access that in Python?
I Like using $(...) for command-line arguments that are dependent on some other program. I think this would work for your program python main.py $(find -name "foo*"). Found here
top.