Bourne shell globbing (was How do I deal with (null) filenames?)

Root Boy Jim rbj at dsys.ncsl.nist.gov
Sat Aug 5 03:45:07 AEST 1989


? From: Guy Harris <guy at auspex.auspex.com>

?  >>>	[!!-~].???
?  >>>
?  >>>The part to the left of the period says anything that is NOT (first
?  >>>exclamation) in the range exclamation to tilde.
?  >
?  >Is this standard in System V.2?  V.3?  Maybe it's just a SunOS-ism?

? Yes, yes, and no.  It first appeared in System III.

Tcsh has a similar feature. `ls *.[^o]' will list any file with a
one char suffix except for onject files.

	Root Boy Jim
	Have GNU, Will Travel.



More information about the Comp.unix.questions mailing list