Tuesday, February 1, 2011

How to delete all files from a directory but X


We can use find for this!
find . -not -name 'X' -delete

No comments:

Post a Comment