File:  [CSRG BSD Unix] / 43BSD / contrib / icon / man / man1 / gcomp.1
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

.so tmac.ilib
.TH GCOMP 1 "The University of Arizona \- 8/15/83"
.SH NAME
gcomp \- global complement of file names
.SH SYNOPSIS
\f3gcomp\fP files
.SH DESCRIPTION
\fIGcomp\fR produces a list of the files in the current directory
that do not appear among the arguments.
For example,
.DS
gcomp *.c
.DE
produces a list of files in the current directory that do not
end in \*M.c\fR.
As another example, to remove all the files in the current directory
that do not match \*MMakefile\fR, \*M*.c\fR, or \*M*.h\fR, the
following can be used:
.DS
rm `gcomp Makefile *.c *.h`
.DE
The files \*M.\fR and \*M..\fR are not included in the output, but other
`dot files' are.
.SH BUGS
\fIGcomp\fR reads the current directory as a file and assumes that all
directory entires are 16 bytes in length.
.SH SEE ALSO
fset(1), gset(1)
.SH AUTHOR
William H. Mitchell

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.