Sometimes I want to delete large swaths of temporary files recursively, and recycle the directory name without waiting for the command to complete. (For example, if I want to nuke and re-checkout a version control working copy.)
While this doesn't happen all that often, when it does I usually use a command like:
mv "$oldname" dienow && rm -rf dienow &
I could create a function or alias for this, of course, but without doing that is there a shorter way to express the above?
rm -rf "$oldname" &. I assume that doesn't do what you want, so a better example would be helpful.