Globbing means matching files by name patterns containing wildcards.
1
vote
3answers
1k views
Selecting files that start with $LETTER, or a letter later than $LETTER in the alphabet
Suppose a directory contains the following files:
afile1
afile2
bfile
cfile
ffile
ffile2
qfile
zfile
I am looking for an easy way of selecting all the files which start with $LETTER, or start with ...
3
votes
1answer
449 views
scp, globbing, and different shells
The other day at work I tried doing
scp remotehost:~/*.txt .
and I received an error about the *, *.txt file not found sorry, not at work and I forget the exact error
on my workstation I run zsh ...
4
votes
2answers
487 views
How can I search for a file with fixed name length using ls?
In a directory, I have files like
lazer_100506
lazer_100707
lazer_091211
lazer_110103
lazer_100406_temp
lazer_100622#delete
etc
How can I get a listing of only the first four files?
$ ls ...
18
votes
7answers
11k views
Rsync filter: copying one pattern only
I am trying to create a directory that will house all and only my PDFs compiled from LaTeX. I like keeping each project in a separate folder, all housed in a big folder called LaTeX. So I tried ...
3
votes
3answers
162 views
is the behaviour of .* to include . and .. defined in LSB or POSIX or some other specification?
as title: is the behaviour of .* to include . and .. defined in LSB or POSIX or some other specification?
1
vote
2answers
3k views
Delete files in a directory that match a regexp, using a Mac terminal
How do I delete files in a directory that match a given regexp, or a similar solution, using a Mac terminal?