33 Notas

More stuff

  • Home
  • English / Spanish Version

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
Posted by JM Trujillo at 2:50 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: english, spanish shell unix

Como borrar todos los archivos de un directorio menos X

Para borrar los archivos de un directorio menos X archivo en unix se puede usar:


find . -not -name 'X' -delete
Posted by JM Trujillo at 2:48 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: spanish shell unix
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)
English
EspaƱol

Past articles

  • ►  2014 (1)
    • ►  May (1)
  • ▼  2011 (4)
    • ▼  February (2)
      • How to delete all files from a directory but X
      • Como borrar todos los archivos de un directorio me...
    • ►  January (2)
Simple theme. Powered by Blogger.