3,260 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
68
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:
- ...
1
vote
0
answers
172
views
Get hourly timestamped data using a string identifier
In the scenario where sensor data is attached to a specific string identifier in GridDb/GridDb Cloud, the SQL query should return hourly sensor data only matching with a certain combination of letters....
1
vote
3
answers
143
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 ...
2
votes
2
answers
96
views
Zsh recursive globbing pattern with exclusion does not work properly with current directory [closed]
I meant to list all files recursively excluding AV1-encoded files.
But the exclusion pattern does not work as I expected:
/Volumes/X/C/New/studio/成长的烦恼 copy ❯ tree ...
0
votes
1
answer
31
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 ...
0
votes
0
answers
132
views
What am i doing wrong appending lists in pandas?
I have two csv files in the folder. My output for each loop iteration is avg_mtf. I have been successful in creating lists and concatenating them in the other loops within glob but my comb list is ...
1
vote
1
answer
105
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=$(...
Robert's user avatar
- 9,086
0
votes
2
answers
72
views
How to create a simple status/count/progress output when searching for files using rglob() in Python?
I have a simple line that searches for all .json files, except there are about 28k of them, so this one line takes about a minute to complete:
from pathlib import Path
files = list(Path("~/foo/...
2
votes
1
answer
92
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";
...
7
votes
2
answers
273
views
Glob *.* not working on paths with unicode in Java and macOS?
It seems Java's glob path matcher isn't matching some unicode symbols as shown in this jshell session:
$ jshell
| Welcome to JShell -- Version 24
| For an introduction type: /help intro
jshell> ...
1
vote
1
answer
257
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
135
views
How to convert gitignore to pathspec
How to reliably convert a .gitignore file into a list of pathspec strings that can be passed to individual git commands?
I want to have a javascript function that can take any .gitignore file as input,...
1
vote
1
answer
71
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 ...
1
vote
3
answers
138
views
Need to get a list of files where the last character of the file name is 0 - 9
I am trying to move files from one folder to another in Windows environment using PowerShell. I have the move process working as I need but would like to filter based on the last character of the ...
0
votes
1
answer
45
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 ...