Questions tagged [wildcard-expansion]

Wildcard expansion is the process of pattern matching by treating a special wildcard character as a replaceable segment of the pattern.

Wildcard expansion, or globbing in a UNIX context, is a common technique of extracting a set of values that match a simple pattern. The wildcard character stands in for a sequence of potentially variable character that the pattern is not concerned with.

Wildcards typically use the following characters: ?, *, or %.

Depending on the context these can mean different things, but typically ? matches a single character, and * or % match zero or more characters. The specific set wildcard characters accepted vary with the application.

Wildcard expansion is related to regular expressions but should not be confused with them as they are very distinct entities.

51 questions
0
votes
2 answers

CodeIgniter Wildcard Query

I am trying to perform a wildcard search query using CI. I am checking for loggedin sessions. If a user is logged into more than one device, a popup is displayed. To check if the user is logged in from any other device, I perform a wildcard query to…
Ankur Sinha
  • 6,473
  • 7
  • 42
  • 73
0
votes
1 answer

How does Omnisharp use wildcards in its config files?

Background This relates to an older stackoverflow question. I was hoping to ask for more details but haven't got the Reputation to write comments yet. Circumstances are the same: I'm adding codecheck warnings that I want to ignore, by editing the…
0
votes
1 answer

How to prevent hang with wildcard at powershell shell. (perforce)

Perhaps this is specifically a perforce problem, but I think not. At least, in some way, it involves a difference between cmd.exe and powershell, involving how it passes parameters to a command line program. This perforce command, issued at the…
Elroy Flynn
  • 3,032
  • 1
  • 24
  • 33
0
votes
1 answer

bash script to find latest logfile

I want to find the latest logfile (.log extension) in a directory using a bash script. At first my simple attempt worked ok filename=`ls -t -c1 | head -1` But when I admit that files other than logfiles could be found, this doesn't work because of…
Lyle
  • 43
  • 5
0
votes
1 answer

Prevent Windows command-interpreter (FOR) from treating list as wildcards?

I am trying to write a batch file that takes a couple of arguments, followed by one or more optional filenames (which may include wildcards) and at some point processes each one of the optional filenames, but the for command keeps trying to expand…
Synetech
  • 9,643
  • 9
  • 64
  • 96
-1
votes
2 answers

Expanding wildcard in echo to file

Say I have the following in Bash: FOO=/a/c*/d/ echo PATH=${FOO}:${PATH} >> .env When I inspect the contents of the file .env the path still contains the wildcard. How can I ensure that the wildcard is expanded to the path, assuming there is only…
Boon
  • 1,073
  • 1
  • 16
  • 42
1 2 3
4