[NTLUG:Discuss] What's the bash equiv of the DOS for % in?
Richard Geoffrion
richard at rain.lewisville.tx.us
Sat Aug 25 20:09:41 CDT 2001
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.
More information about the Discuss
mailing list