wildcard

Batch file - date variables and moving files with variable date file name from one folder to another

元气小坏坏 提交于 2020-01-05 05:48:06
问题 I need some assistance, please. I'm trying to create a batch file to move files from one folder to another. The file name will have variable yyyy-mm format plus additional data before or after the date. The batch will need to move the file to a server directory with the same mmmm-yy folder name. I've come up with the code below, but it doesn't quite work. A "Missing Operand" error is returned. The new directory is created but the files are not moving from the old folder to the new one. My

Nested Wildcards to Handle Virtual Items in Sitecore

北战南征 提交于 2020-01-04 09:06:18
问题 TLDR; What is the best or recommended way to work with complex virtual items at multiple levels? I'm working on something currently that instead of using query string variables to filter properties, I would just like to extend the URL and allow those URLs to filter. Events: ~/events/2012/april or ~/events/lunches or ~/events/6CB27D08-358E-49AA-8107-16A50E963C70 I currently have a wildcard setup to handle the last case or the year but ran into the snag of a wildcard only handling one level so

Maven <include> wildcard match on partial folder name

依然范特西╮ 提交于 2020-01-04 05:57:11
问题 With the maven-clean-plugin I would like to remove all folders that start with "tmp". Is this possbile with maven wildcards? I have tried: <fileset> <directory>${project.basedir}</directory> <includes> <include>**/tmp*</include> </includes> </fileset> Which does not work. 回答1: This configuration works for me: <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.5</version> <configuration> <filesets> <fileset> <directory>${project.basedir}</directory> <includes> <include>**/tmp*/<

How do I copy with scp with a wildcard(*) in the destination path?

情到浓时终转凉″ 提交于 2020-01-04 00:56:06
问题 Is it possible to get the value of what a wildcard matched to? I.e. I want to do scp -r user@host:some/path/with/*/file.txt cp/to/*/file.txt With the command above, I want some/path/with/TEST/file.txt --> cp/to/TEST/file.txt some/path/with/OTHER/file.txt --> cp/to/OTHER/file.txt EDIT: I'll add some more data of my actual setup, which might make it clearer. On my server I have the structure server $ pwd ~/sixtrack/simulations server $ ls run0001 run0002 run0003 ... Each run* is a directory,

Makefile: How to apply an equivalent to filter on multiple wildcards

无人久伴 提交于 2020-01-03 14:49:13
问题 I am writing a Makefile and I get stuck on a filter function limitation. Indeed, filter takes only one wildcard. What I would like to do is: I have a list a files, some matching the regexp blabla , some not. But for this I need 2 wildcards, thus i cannot use filter function. I would like to split my original list in 2 lists, one containing all the element containing the blabla string (filter equivalent) and the other one containing the not matching one (filter-out equivalent). thanks for your

Regex for MS Word for detecting subtitle

不打扰是莪最后的温柔 提交于 2020-01-03 07:02:48
问题 I have a MS Word Documents with its subtitle all in font-size 18px and bold. I want to find them all and replace them with something else. There I use Ctrl+H, enabling wldcards, chossing the font style (fontsize and bold), and use the regex (*{1,}) . However, this regex would find occurrences for every single character. How can I make every whole subtitle as a single occurence? Thanks 回答1: Use a Word wildcard Find/Replace, where: Find = ([!^13]@)^13 Replace = Before Text \1 After text^p and

How to use LIKE statement in sql plus with multiple wild carded values?

主宰稳场 提交于 2020-01-03 02:29:04
问题 my question is that currently if i want to query for multiple wildcarded values. I need to do something like this. select customername from customers where customername like '%smith' or customername like '%potter' or customer name like '%harris' or customername like '%williams'; So I wanna ask from the experts, is there any easier way to do this? Regards, Sanjan 回答1: Create a table of your 100 names select customername from customers c inner join customersames cn on(c.customernamename like '%

A batch file that copies another into Start Up folder?

别说谁变了你拦得住时间么 提交于 2020-01-02 10:15:15
问题 I am making a batch file that needs to copy another batch file into the Start Menu Start Up folder (the one used when a program launches on login/start up) . Since the path uses the user's computer name eg. C:\Documents and Settings\User Name I need the batch file to get the user's correct name instead of the "User Name" or * (wildcard). Wildcards doesn't work as the batch file comes up with " the filename directory name or volume label syntax is incorrect ". I hope this is clear enough. 回答1:

Simple HTML DOM wildcard in attribute

非 Y 不嫁゛ 提交于 2020-01-02 07:35:14
问题 I have the following tags <div class="col *">Text</div> * is anything. I want to get all div tag with class attribute contains col (as in my example) using Simple HTML DOM. 回答1: Since Simple HTML DOM does already have a method for selecting attributes that contain a certain value and|or something else. For example $html->find("div[class*=col]", 0)->outertext Or you could just retrieve div nodes that start with col like so $html->find("div[class^=col]", 0)->outertext And for safe keeping you

Wildcard SSL Certificates, Custom Domain Names, and Cloudflare

风流意气都作罢 提交于 2020-01-02 06:23:28
问题 I have a domain with a wildcard SSL certificate (https://domainA.com). I have users who use custom subdomains (https://user1.domainA.com). I have users who wish to use custom domains that point to their subdomains (CNAME records from https://domainB.com to https://user1.domainA.com). The problem with these custom domains is that they throw an SSL warning in the browser, as the domain name on the SSL certificate (https://*.domainA.com) does not match the domain name being used to access the