Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!lll-winken!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: cleanup script needed Message-ID: <1607@auspex.auspex.com> Date: 10 May 89 19:53:02 GMT References: <19510@adm.BRL.MIL> <238@cheers.UUCP> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 19 > find DIR -name 'filename' -ls > >To get a directory listing (is the -ls flag standard or just a >SunOS'ism?). The answer to the question is "no" - it's neither standard, nor is it a SunOSism. It's a BSDism (which was folded into the S5-based "find"s in later SunOS releases). If you don't have it, you may have "xargs", which can bundle up the output of "find" and run one "ls" command for every N files, not just for every file. >Find is one of the most powerful Unix utilities, but has too many >command-line switches! This causes it to be mis-used or never-used >by a lot of people who really need such a utility. Or, to quote (at least some versions of) the man page: BUGS The syntax is painful.