How to delete everything except top-level numeric directories? – unix.stackexchange.com

I want to delete everything under some directory /path/to/foo, EXCEPT those sub-directories that match the meta-pattern /path/to/foo/<DIGITS>/ For example, if the contents under /path/to/foo ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "How to delete everything except top-level numeric directories? – unix.stackexchange.com"