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.

Convert WindowsPath to String

redpath = os.path.realpath('.') thispath = os.path.realpath(redpath) fspec = glob.glob(redpath+'/*fits') thispath = os.path.…

python filepath glob pathlib
how to `git ls-files` for just one directory level.

I'm using msysgit (1.7.9), and I'm looking for the right invocation of the git ls-files command to show just the (tracked) …

git ls glob
Wildcard string matching in Ruby

I'd like to write a utility function/module that'll provide simple wildcard/glob matching to strings. The reason I'm not …

ruby pattern-matching glob string-matching
Python glob but against a list of strings rather than the filesystem

I want to be able to match a pattern in glob format to a list of strings, rather than to …

python regex python-2.7 glob
Globbing with ls to find all files matching a certain pattern

I'm trying to locate all PDF files in some folder and any subfolder, just in the terminal, as opposed to …

glob ls
Node/JavaScript glob file/path matching syntax, wildcards, etc

I just found http://gruntjs.com/configuring-tasks#globbing-patterns, which is the most helpful reference I've found. I keep seeing: For …

javascript node.js glob
The issue of * in Command line argument

I wrote a program in Java that accepts input via command line arguments. I get an input of two numbers …

wildcard command-line-arguments glob
What are the differences between glob-style pattern and regular expression?

I've encountered situations where only glob-style patterns are supported and full regular expression support is not there, for instance redis …

regex glob
Case-insensitive Glob on zsh/bash

I need to list all files whose names start with 'SomeLongString'. But the case of 'SomeLongString' can vary. How? I …

linux bash zsh glob
How do I use directory globbing in JDK7

I have been trying to use the new globbing feature in JDK7, starting from the documentation and examples I can …

java java-7 glob java.nio.file