Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!ginosko!uunet!mcsun!hp4nl!phigate!philmds!leo From: leo@philmds.UUCP (Leo de Wit) Newsgroups: comp.unix.questions Subject: Re: find cannot find all files in a directory Keywords: find files directory Message-ID: <1082@philmds.UUCP> Date: 7 Sep 89 05:53:20 GMT References: <874@wubios.wustl.edu> Reply-To: leo@philmds.UUCP (Leo de Wit) Organization: Philips I&E DTS Eindhoven Lines: 13 In article <874@wubios.wustl.edu> david@wubios.wustl.edu (David J. Camp) writes: |I want find to return all the files in each directory to exec. That is, |I want to do something like: | | find /path -type d -exec command {}/\* \; -print | |so that command will be run on each file, one directory at a time. If you don't have xargs, how about: find /path -type d -print|while read dir; do command $dir/*; done Leo.