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
1
vote
1 answer

Prevent wildecard expansion with system() function call

I have read this: Stop shell wildcard character expansion? and similar - this is not a duplicate question. I am dealing with a set of legacy c++ code, from which a number of binaries are built. This code uses system function to execute a shell…
Aleks G
  • 56,435
  • 29
  • 168
  • 265
1
vote
1 answer

Make: circular dependency dropped c++

I created a makefile based on the GNU Make the tutorial: https://www.gnu.org/savannah-checkouts/gnu/make/manual/html_node/index.html#SEC_Contents. The make file works fine on initial make, but if a file is changed and make is ran there is a…
1
vote
2 answers

How to remove a common prefix pattern from multiple file names in bash

I would need to rename thousands of files, right now I'm doing it with removing first x characters, but it can be a lengthy process since the number of chars needed to be removed changes. Source files are named like this: 4023 - 23 - Animal,…
Juicee
  • 31
  • 4
0
votes
0 answers

Escaping characters before converting a wildcard pattern to a regular expression

The user provides a search string, and this string is dynamically converted to a regex, because the subsequent search code doesn't take a plain string but a regex as input. I want the characters * and ? to have special meanings in this user-provided…
Gras Double
  • 15,901
  • 8
  • 56
  • 54
0
votes
0 answers

azure data studio to expand wildcard as column name feature

I knew there was an introduction for expanding wildcard. However, I cannot do this. Does anyone know what is the feature name to amend to the corresponding shortcut key? Or this feature was removed due to some reason? BTW it seems that I cannot hit…
Coty Huang
  • 11
  • 2
0
votes
0 answers

How do I deal with spaces in filenames for a wildcard parameter in a bash script?

I am writing a bash script that will take a list of filenames as an argument. It will generally be used with wildcards. Right now, the script just prints the files: #!/bin/bash for file in $@ do echo "Processing $file" done The problem is when…
Ben Holness
  • 2,457
  • 3
  • 28
  • 49
0
votes
1 answer

Bigquery Wildcard characters

I have two tables say SAMPLE_CODE, and SAMPLE_CODE_TYPE along with several tables. There are 21 rows in SAMPLE_CODE and 4 rows in SAMPLE_CODE_TYPE. Both table has similar column say code_type STRING. Other than that all column schema are different.…
multiverse
  • 11
  • 1
0
votes
2 answers

export LS_COLORS : apply the rule for every file beginning by README*

I have a problem with the following rule. If I do: eval `/opt/local/libexec/gnubin/dircolors ~/.dircolors` export LS_COLORS="${LS_COLORS}*README=00;37;44" Then, when creating a README file, then I will get: But now, I would like to apply the rule…
user1773603
0
votes
1 answer

Stalling problem with wildcard in bash script

I am very new to writing bash scripts. This question is likely very basic, but I have not been able to find a clear answer yet. I'm working on an Ubuntu subsystem installation on Windows 10. I'm running a script that contains the following…
Archimedes
  • 45
  • 7
0
votes
0 answers

Wildcard expansion in c++

I'm experimenting with a recursive function to do wildcard expansion. The asterisk, '*', can expand to 0-n characters. Example: The pattern '*b*' will expand to 'bb*', the asterisk removed and 'bb' remains. So far, so good. The pattern '*b*' will…
0
votes
1 answer

Nginx subdomain only work when port number is added

I created a website (Nginx) and everything work well except when I try to browse the subdomain, it seems like even a subdomain prefix is threated like it was "www" because it always lead to the main domain except when I add the port number. ex :…
0
votes
1 answer

Wildcard searching between words with CRC mode in Sphinx

I use sphinx with CRC mode and min_infix_length = 1 and I want to use wildcard searching between character of a keyword. Assume I have some data like these in my index files: name ------- mickel mick mickol mickil micknil nickol nickal and when I…
DAVID_ROA
  • 309
  • 1
  • 3
  • 18
0
votes
1 answer

Pass wildcard to scp in a wrapper bash script

I am writing a bash wrapper for scp'ing into and from a certain host with a certain username, like: johny@bonjour:~/bin$ cat scpphcl #!/bin/bash download=false upload=false local="" remote="" usage() { echo "Usage: $0 -d[-u] -l -r…
Qiang Xu
  • 4,353
  • 8
  • 36
  • 45
0
votes
1 answer

snakemake manage pair sample and indelrealigner

I want to connect the realigner process with the indel reallignement. This is the rules: rule gatk_IndelRealigner: input: tumor="mapped_reads/merged_samples/{tumor}.sorted.dup.reca.bam", …
mau_who
  • 315
  • 2
  • 13
0
votes
1 answer

How to construct reverse btree?

I was following this web page https://nlp.stanford.edu/IR-book/html/htmledition/wildcard-queries-1.html for learning wild-card queries. But, not able to understand how a reverse B-tree on the dictionary will look like. For example if I have a…
Arjun Chaudhary
  • 2,373
  • 2
  • 19
  • 36