Date: Mon, 02 Jul 2018 04:48:31 +0900 (JST) From: Yasuhiro KIMURA <yasu@utahime.org> To: freebsd-questions@freebsd.org Subject: Re: Problem deleting files Message-ID: <20180702.044831.477271088854915236.yasu@utahime.org> In-Reply-To: <85B4CFC22AC0CA70B917D42D@Pauls-MacBook-Pro.local> References: <85B4CFC22AC0CA70B917D42D@Pauls-MacBook-Pro.local>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Paul Schmehl <paul.schmehl@gmail.com> Subject: Problem deleting files Date: Sun, 01 Jul 2018 14:13:30 -0500 > I have a problem with a directory full of files that I can't seem to > delete. > > rm * returns argument list too long. So does file * > > find . -type f -exec rm [] \; returns rm: []: No such file or > directory over and over again. Try following command. find . -type f -print0 | xargs -0 rm -f If it is only a matter of the number of files, then this should work well. Best, --- Yasuhiro KIMURA
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180702.044831.477271088854915236.yasu>