On Thu, 05 Jan 2012 16:45:24 -0500 "Sean Dague - [email protected]" <+mhvlug2+trace+0ed1485039.sean#[email protected]> wrote:
> On 01/05/2012 04:37 PM, John Mort wrote: > > john@azrael:/media/mtool/Tokens$ ls * | grep README.txt > > README.txt > > README.txt > > README.txt > > README.txt > > README.txt > > README.txt > > README.txt > > README.txt > > README.txt > > > > > > The folder I'm running this command in has many many subfolders. > > How do I change my command to tell me where these README.txt files > > are so that I can purge them? > > $ find . -name README.txt > > if you would also like to remove them in one fell swoop: > > $ find . -name README.txt | xargs rm > > -Sean > Or even simpler in this case: find . -name README.txt -delete # Deletes all README.txt files You can replace the "." in find with the path of your choice. --Fred _______________________________________________ Mid-Hudson Valley Linux Users Group http://mhvlug.org http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug Upcoming Meetings (6pm - 8pm) Vassar College Feb 1 - Home Networking Made Simple with Amahi Home Server Mar 7 - March 2012 Meeting - 9th Annivesary of MHVLUG Apr 4 - April 2012 Meeting
