Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!lll-winken!taco!news From: harris@catt.ncsu.edu (Michael Harris) Newsgroups: comp.unix.questions Subject: How do I tell when a directory is empty in a script? Message-ID: <1991Mar30.040400.13893@ncsu.edu> Date: 30 Mar 91 04:04:00 GMT Sender: news@ncsu.edu (USENET News System) Reply-To: harris@catt.ncsu.edu (Michael Harris) Organization: NCSU CATT Program Lines: 8 When I am running a shell script, how can I tell when a directory is empty? I tried looking at the output of ls -a but it includes . and .. Suggestions anyone? __ _ ___ ___ Michael Harris - harris@catt.ncsu.edu // _ | / \ | | Computer and Technologies Theme Program // /||\/||/ _ /| |__ / /_\ | | North Carolina State University \X/ /-|| ||\_|/-|