Top "Glob" questions

globs, more properly called [shell] patterns, and also known as wildcard expressions, are instances of a pattern-matching language used in many, esp.

How to loop over files in directory and change path and add suffix to filename

I need to write a script that starts my program with different arguments, but I'm new to Bash. I start …

bash for-loop filenames glob
How to use glob() to find files recursively?

This is what I have: glob(os.path.join('src','*.c')) but I want to search the subfolders of …

python path filesystems glob fnmatch
How to count the number of files in a directory using Python

I need to count the number of files in a directory using Python. I guess the easiest way is len(…

python count glob fnmatch
Get a filtered list of files in a directory

I am trying to get a list of files in a directory using Python, but I do not want a …

python filesystems wildcard glob directory-listing
Deleting all files from a folder using PHP?

For example I had a folder called `Temp' and I wanted to delete or flush all files from this folder …

php file directory glob
How can I use inverse or negative wildcards when pattern matching in a unix/linux shell?

Say I want to copy the contents of a directory excluding files and folders whose names contain the word 'Music'. …

bash shell pattern-matching glob
How can I search sub-folders using glob.glob module?

I want to open a series of subfolders in a folder and find some text files and print some lines …

python filesystems glob fnmatch
Move all files except one

How can I move all files except one? I am looking for something like: 'mv ~/Linux/Old/!Tux.png ~/Linux/…

linux bash glob
Python glob multiple filetypes

Is there a better way to use glob.glob in python to get a list of multiple file types such …

python glob
Loop through all the files with a specific extension

for i in $(ls);do if [ $i = '*.java' ];then echo "I do something with the file $i" fi done …

bash file glob