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...
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".
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 ...
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)
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...
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'...
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>...
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...
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
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...
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...
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...
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
6
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...
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...
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 ...
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;
...
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...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.