3,260 questions
1
vote
0
answers
60
views
GitHub Actions variable regex replacement
I am trying to prepare artifact name prefix using GitHub Actions that will replace project name special characters with hyphens. I have this piece of code:
strategy:
matrix:
project:
- ...
0
votes
3
answers
113
views
Validate a globed-like path
I am writing a API for a program. The program has a native support of "globed" paths such as img-0*.png. I would like to know how to be sure that there is at least a file satisfying that ...
0
votes
1
answer
27
views
How to search vscode by specific file type only without full path [duplicate]
I has three files in working directory by Visual Code.
file1.py
dir.py/file2.txt
dir.py/file3.py
I want 'find in file' only py extension, In other words, file1.py and file3.py.
First, use 'files to ...
1
vote
1
answer
98
views
How to get only the digits from a bash variable?
In the bash script below I want to get only the digits and only the letters from a variable that has both.
#!/usr/bin/env bash
set -eu
both="abc-123"
letters=${both//[^a-zA-Z]*/}
# digits=$(...
2
votes
1
answer
87
views
Parcel resolver-glob is not working as expected after upgrading to 2.14.4
I recently upgraded one of my project's ParcelJS from version 2.13.3 to 2.14.4. Everything works as expected, except for the glob imports.
JS
import images from "../../../img/gallery/*.jpg";
...
1
vote
1
answer
223
views
Why does pathlib.Path.glob function in Python3.13 return map object instead of a generator?
I was playing around with Path objects and found an interesting behaviour. When testing with python3.11, Path.glob returns a generator object.
>>> from pathlib import Path
>>>
>&...
1
vote
1
answer
67
views
Can an asterisk * match nothing in .gitignore?
Given that
gitignore use Glob pattern instead of regular expression
The official guide tells that an asterisk * matches anything except a slash /
I am wondering if an asterisk * can match just ...
0
votes
1
answer
44
views
SQLite: NOT GLOB returns the string I specifically want to exclude
I am attempting to do a column update in SQLite where if a certain string exists, update the column EXCEPT if it matches a particular string. Note, I can't use an EXCEPT statement in the select query ...
1
vote
2
answers
588
views
fish shell: Glob function?
When I migrated to fish from bash, I found glob patterns like "tmp[0-9][0-9].pdf" aren't supported. Then, recently fish has stopped to support the ? wildcard:
$ fish --version
fish, version ...
0
votes
1
answer
51
views
golang glob matches wrong segment path
I am trying to verify that certain file paths are "valid", using a glob pattern.
For example, I expect the following pattern: '/Users/*/path/to/program'
to match with: '/Users/username/path/...
1
vote
4
answers
99
views
regex to exclude lowercase only strings, but save strings which contain capital
Look to those regex
find /tmp/MG/virt-manager-5.0.0/ -maxdepth 1 -type f |grep -v [^a-z]+\.[^a-z]+
/tmp/MG/virt-manager-5.0.0/.mailmap
/tmp/MG/virt-manager-5.0.0/virt-manager
/tmp/MG/virt-manager-5.0....
0
votes
2
answers
90
views
Turning globbing off in Jmeter
I'm trying to send a GET request that has bracket characters ('[]', '{}') in the query parameters which makes JMeter (v5.6.3) think I am trying to use globbing. I have been testing my API using ...
-2
votes
1
answer
111
views
What does `**\/[^_]*.md^` in Astro glob() Match?
In The docs for the new Astro 5.0.0 release, the new syntax for content collections is introduced docs are here
In there, I see a glob pattern **\/[^_]*.md but not how this should differ from **\*.md. ...
1
vote
2
answers
65
views
How to make my program that combines CSVs iterate over multiple subfolders in a directory?
So I'm trying to use Python to analyze images of cells taken in multiple wells of a 96 well plate.
I was able to generate a csv of my data from said images from each field and group them by well.
I ...
0
votes
0
answers
24
views
Cannot read files with different paths [duplicate]
I'm trying to read csv file based on date in file name. Below is my code:
import pandas as pd
import numpy as np
from pathlib import Path
import glob
import io
date_6='2024-05-15'
date_6_1 = '*' + ...
1
vote
1
answer
131
views
Asterisk glob expansion (*) unexpected behaviour in bash on WSL's 9P mounts
I'm observing strange behavior from my script only in WSL on 9P mounts (Windows disks, like /mnt/c/...).
Glob expantion of asterisk (*) in for loop results in duplicates on next invocation if there is ...
1
vote
1
answer
133
views
Why is glob failing after the first iteration of foreach
I'm new to Perl and seem to have come across some behavior that I don't understand and was unexpected.
I'm trying to write a function that attempts to load a config file from a list of possible ...
-3
votes
1
answer
123
views
For loop not writing images
I'm attempting to write a for loop that opens each image in a folder, processes it, and then outputs it back into the same folder. The problem is, when I run the script, nothing happens. I just see ...
0
votes
2
answers
77
views
rm command works in shell but not in Makefile
I have an rm command that does not work in a Makefile but when I copy it to the shell it works:
$ make clean
rm paper.{abs,blg,pdf,aux,log,bbl,out,xmpdata}
rm: cannot remove 'paper.{abs,blg,pdf,aux,...
0
votes
1
answer
1k
views
React Native installation via Expo giving multiple npm dependency errors
I am new to React Native. After running "npx create-expo-app@latest", npm is throwing multiple package related warnings.
npm warn deprecated [email protected]: This module is not supported, and ...
0
votes
1
answer
105
views
File pattern in NW.js: package.json not found in srcDir file glob patterns
My source folder is /dist, and I want to run a NW.js script in /tool/nw.js. Why does it throw the glob pattern error about not finding the srcDir (/dist) folder? It works when using glob:false in the ...
1
vote
0
answers
245
views
tsconfig.json glob patterns e.g "**/*.{ts,js}" do not work. Is this a bug or expected behaviour?
Why doesn't this work? This glob pattern works for build tools like ESLint, but with TypeScript it fails to resolve the files.
// ❌ Doesn't detect files
// tsconfig.a.json
"include": [
&...
0
votes
1
answer
545
views
How can I combine multiple CSV files into one Excel worksheet using Python?
I am trying to combine multiple CSV files into an Excel worksheet so I can analyse my data.
So far I have been able to create the worksheet with the names of the CSV files as the tabs, but in the ...
1
vote
0
answers
51
views
HTMLGlob template pattern matching with nested subdirectories
I am working on a golang project using gin and go templating.
My templates are in a structure like so:
C:.
├───components
├───display
....
I would like to add subdirectories to organise the templates,...
0
votes
1
answer
116
views
Define input files for snakemake using glob
I am building a snakemake pipeline for some bioinformatics analyses, and I'm a beginner with the tool. The end users will be mainly biologists with little to no IT training, so I'm trying to make it ...