Questions tagged [file-globs]
20 questions
0
votes
2 answers
How to match and return files with various extensions in Gulp?
I am trying to return files with extensions .css and .styl, located in different folders, and use them in a Gulp task, without much success. I wonder what I am doing wrong here? This is my code at this point:
var pattrn = /(styl|css)$/g;
var path1 =…

nunop
- 2,036
- 2
- 20
- 36
0
votes
1 answer
grunt file glob file extension pattern
I have a grunt task to traverse a folder structure for all jpg, jpeg and png files. Is there an easier way to do this compared to
images : {
expand : true,
flatten : true,
cwd : "develop/",
src : ["modules/**/*.jpg",…

Jason
- 11,263
- 21
- 87
- 181
0
votes
1 answer
bash test regex does not work as expected
I am having a bash script that operates on multiple files but the operation shall not take place on a specific subset of files - if the filename matches ~.jpg [e.g. as in myimage~xa.jpg].
declare -a AFileList2
for sFile in *.jpg
do
echo "Testing…

hy-soft
- 163
- 2
- 12
0
votes
1 answer
How do I rename the cwd, base and path in the gulp stream, to save as I need it?
I have a gulp.src stream with files:
file.cwd file.base file.path
D:\Projects\test D:\Projects\test\public\app\ D:\Projects\test\public\app\bootstrap-8843d1ff.js
D:\Projects\test…

tamtakoe
- 245
- 3
- 12
0
votes
1 answer
Using globs in GNU grep's path argument
BSD (Mac) grep allows for this command:
grep -n "FIXME" **/*.rb
But GNU grep forces me to specify at least a folder to start from:
grep -n "FIXME" {lib,spec}/**/*.rb
Is there a way to get this to behave like it does in BSD grep?

yurisich
- 6,991
- 7
- 42
- 63