wildcard Questions

3

Solved

I've long used the find command for finding files and directories in the current directory and all subdirectories that match a pattern: find . -name "*.txt" -print find . -name "Bill*" -print Bu...
Occiput asked 14/10, 2013 at 2:50

3

Solved

I have a class A and a class B extends A In another class C I have a field private List<B> listB; Now, for some unusual reason, I have to implement this method in C public List<A> ...
Acker asked 7/7, 2010 at 13:14

4

Solved

Is it possible to include multiple patterns in a single search string in glob for nodejs? Like i need to find all files that have "abc.pdf" and "xyz.pdf".
Crin asked 28/2, 2020 at 15:49

5

Solved

How can i make this work? SELECT * FROM item WHERE item_name LIKE '%' || (SELECT equipment_type FROM equipment_type GROUP BY equipment_type) || '%' The inner sub query returns a list ...
Lues asked 18/6, 2013 at 19:57

34

Solved

I'm trying to use a select statement to get all of the columns from a certain MySQL table except one. Is there a simple way to do this? EDIT: There are 53 columns in this table (NOT MY DESIGN)
Poeticize asked 12/8, 2008 at 18:45

7

Solved

My MySQL database needs two users: appuser and support. One of the application developers insists that I create four accounts for these users: appuser@'%' appuser@'localhost' support@'%' support@'l...
Grub asked 30/5, 2012 at 20:34

5

When I try to do a basic git add *.erb (or any simple wildcard expressions) git is not recognizing it (them). As a side-note, I have never done this before so I'm sure it's a rookie mistake, but I'...
Jon asked 22/8, 2012 at 4:7

5

Solved

Is there is a good way to add a new value to existing Stream? All I can imagine is something like this: public <T> Stream<T> addToStream(Stream<T> stream, T elem ) { List<T&gt...
Refluent asked 28/2, 2015 at 19:21

4

I've create a Django (1.7) web application with a Nginx, Gunicorn, Django stack and recently I've started to get a number of errors: [Django] ERROR (EXTERNAL IP): Invalid HTTP_HOST header: '*.do...
Overspread asked 13/10, 2015 at 8:27

5

Solved

I recently wanted to point all subdomains for a test domain, let's say example.com to the localhost. Is there a way to point all requests on *.example.com to resolve to 127.0.0.1
Currajong asked 7/12, 2013 at 21:32

4

Solved

I'm working on a RESTful app in Kotlin and for the router, I'm using a when statement, as it's the most readable and good looking conditional. Is there a way to use Regex or a wildcard in the when...
Kavanagh asked 21/12, 2016 at 19:43

16

Since I believe this should be a basic question I know this question has probably been asked, but I am unable to find it. I'm probably about to earn my Peer Pressure badge, but I'll ask anyway: Is...
Flaxseed asked 2/7, 2009 at 18:58

11

I need to perform Wildcard (*, ?, etc.) search on a string. This is what I have done: string input = "Message"; string pattern = "d*"; Regex regex = new Regex(pattern, RegexOptions.IgnoreCase); i...
Gyrostabilizer asked 2/8, 2011 at 5:40

2

Solved

Let's say we have the following query: SELECT * FROM companies WHERE name LIKE '%nited' It returns name united How do I write a query using MySQL's full-text search that will provide s...
Cobnut asked 19/12, 2013 at 10:51

18

I need a comparator in java which has the same semantics as the sql 'like' operator. For example: myComparator.like("digital","%ital%"); myComparator.like("digital","%gi?a%"); myComparator.like("d...
Matrix asked 22/5, 2009 at 15:14

4

Solved

I have a legacy web app that is being replaced with React and it is called by these various systems by being passed a URL (derived from records in and existing DB system) The app renders folder vie...
Curson asked 19/1, 2016 at 16:2

2

Solved

I am using log4j to do some logging on one of my applications. The Loggers in my config are looking like this. <Root level="info"> <AppenderRef ref="Console"/> </Root> <Logg...
Timoteo asked 14/6, 2017 at 17:55

6

I am trying to rsync directory A of server1 with directory B of server2. Sitting in the directory A of server1, I ran the following commands. rsync -av * server2::sharename/B but the interestin...
Quinte asked 28/1, 2012 at 16:18

4

Solved

I know this is a pretty basic question, and I think I know the answer...but I'd like to confirm. Are these queries truly equivalent? SELECT * FROM FOO WHERE BAR LIKE 'X' SELECT * FROM FOO WHERE B...
Married asked 31/12, 2008 at 23:1

11

Solved

I would like to match strings with a wildcard (*), where the wildcard means "any". For example: *X = string must end with X X* = string must start with X *X* = string must contain X Also, some c...
Safeguard asked 18/5, 2015 at 9:36

5

Solved

I have a directory with image files foo_0.jpg to foo_99.jpg. I would like to copy files foo_0.jpg through foo_54.jpg. Is this possible just using bash wildcards? I am thinking something like cp ...
Rabah asked 22/6, 2011 at 16:39

14

Solved

I am trying to get a list of files in a directory using Python, but I do not want a list of ALL the files. What I essentially want is the ability to do something like the following but using Pytho...
Absinthism asked 8/2, 2010 at 23:2

7

Solved

I need to get the stock values out of this array: Array ( [stock0] => 1 [stockdate0] => [stock1] => 3 [stockdate1] => apple [stock2] => 2 [ stockdate2] => ) I need to pat...
Procaine asked 20/10, 2009 at 16:12

1

Solved

On some of my Windows 10 machines, FindFirstFile matches files that definitely should not match. Assume the following program in Delphi: {$apptype console} uses Windows; var FindHandle: THandle; ...
Mccarter asked 24/6, 2022 at 7:1

18

Solved

It is much more convenient and cleaner to use a single statement like import java.awt.*; than to import a bunch of individual classes import java.awt.Panel; import java.awt.Graphics; import jav...
Sherri asked 29/9, 2008 at 3:55

© 2022 - 2024 — McMap. All rights reserved.