1 |
We use * notation in shell to match sets of files -- this is NOT same as regular expression as * is equivalent to (.*) except normally files beginning with . are not accessed with a simple glob
-
Presumably glob is "short" for globalize not globular
|
2 |
@a= <file name with globbing>; returns a list (one per element of @a) of files matching globbed specification
-
For example @a= < *cps616*> returns all files in current directory with string cps616 somewhere in their name.
|
3 |
Variable Interpolation is allowed in globbing e.g.
|
4 |
$home="~gcf"; # gcf's home directory is ~gcf
|
5 |
@a = <$home/*>; # returns all non initial . files in gcf's home directory
|