Path: utzoo!utgpu!water!watmath!clyde!rutgers!mcnc!xanth!jim From: jim@xanth.cs.odu.edu (Jim Duncan) Newsgroups: comp.unix.questions Subject: Re: Finding Files Message-ID: <3665@xanth.cs.odu.edu> Date: 11 Dec 87 10:19:27 GMT References: <205700003@prism> Reply-To: jim@xanth.UUCP (Jim Duncan) Organization: Old Dominion University, Norfolk Va. Lines: 18 In article <205700003@prism> billc@prism.UUCP writes: > alias where "find \$cwd -name \!* -exec echo {} \;" > Question: Is there a better way to do this? Yes. Why not use `-print' in place of `-exec echo {} \;' ? Also, I'm not sure of what happens if your script comes accross a filename with asterisks in it -- possible you should escape it also. Lastly, wouldn't it be better if you started the find with the current directory instead of your $HOME ? I assume you're in a different situation than I am -- I have a ridiculous number of subdirectories, and find's depth-first search would take forever to locate some of my stuff if I always started at $HOME. -- Jim Duncan, Computer Science Dept, Old Dominion Univ, Norfolk VA 23529-0162 (804)440-3915 INET: jim@xanth.cs.odu.edu UUCP: ...!sun!xanth!jim ---------- Time flies like the wind, but fruit flies like bananas. ---------