Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-barr!texsun!texbell!wuarchive!wugate!wubios!david From: david@wubios.wustl.edu (David J. Camp) Newsgroups: comp.unix.questions Subject: find cannot find all files in a directory Keywords: find files directory Message-ID: <874@wubios.wustl.edu> Date: 4 Sep 89 09:38:01 GMT Sender: david@wubios (David J. Camp) Organization: Washington University (St. Louis) Lines: 14 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. I cannot seem to get this to work. I cannot cd to the directory, since I need to be somewhere else when the command is run. Any help will be appreciated. Please reply directly to me. Thank you, -David- -- Bitnet: david@wubios.wustl ^ Mr. David J. Camp Internet: david%wubios@wucs1.wustl.edu < * > Box 8067, Biostatistics uucp: uunet!wucs1!wubios!david v 660 South Euclid Washington University (314) 36-23635 Saint Louis, MO 63110