Xref: utzoo comp.misc:9751 comp.unix.questions:24378 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!mcsun!hp4nl!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.misc,comp.unix.questions Subject: Your favourite rm in /tmp (was: Your favourite UNIX-pipe (...)) Message-ID: <7249@star.cs.vu.nl> Date: 6 Aug 90 21:01:59 GMT References: <730@coma.UUCP> <2987@awdprime.UUCP> <2400@dino.cs.iastate.edu> <4002@rtifs1.UUCP> <58702@bbn.BBN.COM> Sender: news@cs.vu.nl Reply-To: maart@cs.vu.nl (Maarten Litmaath) Organization: VU Dept. of Computer Science, Amsterdam, The Netherlands Lines: 24 In article <58702@bbn.BBN.COM>, cosell@bbn.com (Bernie Cosell) writes: )trt@rti.rti.org (Thomas Truscott) writes: ) )} (rm -f /tmp/*) # Recommended )}seems wiser, particularly since files in /tmp can be named "-r" or "-i". ) )On the other hand, adding '-r' makes some sense, unless you'd really like to )leave a subdirectory of /tmp around forever. Also, I do "rm -f /tmp/.*" )[*NO* '-r' on this one, thank you very much! :-)]. ``On the other hand, adding '-r' makes some sense, unless you'd really like to leave a subdirectory of /tmp around forever.'' Sic! Also: $ rm -r . .. rm: cannot remove `.' or `..' rm: cannot remove `.' or `..' Whatever: $ rm .??* .[!.] # not portable to every UNIX version -- "UNIX was never designed to keep people from doing stupid things, because that policy would also keep them from doing clever things." (Doug Gwyn)