Python Forum

Full Version: Reading file names
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to make a sort of "search function" in a folder, where a user enters a keyword and all files containing that word are outputted. Is that possible?
Of course it is possible. There is already a python module devoted to this, named grin3.

I'm not sure you need python however, there are probably plenty of tools for your platform that do exactly this. In Linux for example, the command for this is grep.