471,330 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

listdir() with mask


Is there any easy way to list files using bash-like patterns? Something like
listfiles("/var/log/*.log"), listfiles("/var/{cache,run}/*").

Also, I'll need something like listfiles("/tmp/**/*.tmp"), where ** is
unlimited number of folders (like is zsh).

Thanks and sorry for my English.

Vladimir Rusinov
GreenMice Solutions: IT-решения на базе Linux
Dec 14 '07 #1
1 4239
On Dec 14, 1:56 am, "Vladimir Rusinov" <vladi...@greenmice.info>

glob or fnmatch


Dec 14 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Jason Kratz | last post: by
8 posts views Thread by Hannu Kankaanp?? | last post: by
reply views Thread by Ishwor | last post: by
7 posts views Thread by Kenneth Pronovici | last post: by
15 posts views Thread by Riccardo Galli | last post: by
1 post views Thread by kai | last post: by
6 posts views Thread by Stef Mientki | last post: by
3 posts views Thread by vedrandekovic | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.