How about: rm /home/ftpusers/*/.bash*
But if you do want to use find(1), check out man find, and pay special attention to the -exec option. ---------------------------------------------------------------------- Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology (Soon: Asst Professor of Sociology, U of North Carolina, Chapel Hill) [EMAIL PROTECTED] - http://www.unc.edu/~aperrin On Tue, 13 Mar 2001, Martin Würtele wrote: > hi, > > we have ftp users in home/ftpusers and we disabled shell acces for them. > now we have .bash* files in every user directory under /home/ftpusers. > > is there a way to use something like > find /home/ftpusers -name .bash* | rm > unfortunately this was what i hoped that could work but i only get > rm: too few arguments. > > i think this is because rm gets every file followed by newline from find. > so if i use > find -name .bash* -print0 > i get the list without newlines but if i use > find -name .bash* -print0 | ls > i get the contents of the current directory. > > any ideas how to solve this problem? > > tia martin > -- > 30DC 1D28 1D79 32F5 5E67 3ABB 28EE B35A 3E8D CCC0 > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > >