[NTLUG:Discuss] What's the bash equiv of the DOS for % in?

David Camm bbai at onramp.net
Sat Aug 25 22:43:28 CDT 2001


go to the directory you wnat to delete all the files form and do 

rm -fr *

this will recursively delete everything in this directory and it's
subdirectories (if any).

Richard Geoffrion wrote:
> 
> Brief:  I need to clean up every instance of I file that I untarred into the
> wrong directory.
> 
> Verbose: I untarred a file into a directory and I trashed it up.  I went
> ahead and untarred the file into its own subdirectory but I want to
> automatically remove all of the untarred files from the first subdir.
> 
> In DOS I could go to the correct subdir and issue the command.....
> 
> for %i in (*.*) do del ..\%i
> 
> So how do I do this in Linux?
> 
> Thanks.
> 
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss



More information about the Discuss mailing list