View Single Post
Old 11 June 2003, 11:50   #11
Registered User
thomas's Avatar
Join Date: Jan 2002
Location: Germany
Posts: 5,681
No. "Matches whatever follows it" is not exact enough. # means "any number of the following character".

So e#gon matches eon, egon, eggon, egggggon and so on.

#? is just a special case of the above.

There are more fantastic features of the Amiga pattern matching:

you can say (a|b) to hit everything with "a" or "b" at the specified place. So to copy a file with its icon and only these, you can say copy filename(|.info).

And this one:

~(this) matches all files that don't have "this" in the specified location.

delete ~(#?.(jpg|gif|png)) deletes all files that do not end in ".jpg" or ".gif" or ".png".
thomas is offline  
Page generated in 0.03975 seconds with 10 queries