G-Notes

Wednesday, April 22, 2009

Cambiar espacios ' ' por guion bajo '_' recursivamente

find . -depth -maxdepth 16|rename 's/\ /_/g'

Funciona en ubuntu. Segun lei hay versiones de linux en donde no funciona pero todas las basadas en debian deben funcionar bien.
Posted by Gerardo at 10:20 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Copiar archivos que contengan cierto string

cp $(find -name *eport*) /home/kakaroto/reportes

La operacion se hace recursivamente(incluye archivos en subdirectorios).
Posted by Gerardo at 10:17 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

About Me

My photo
Gerardo
View my complete profile

Blog Archive

  • ►  2016 (2)
    • ►  April (2)
  • ►  2015 (1)
    • ►  November (1)
  • ►  2014 (1)
    • ►  March (1)
  • ▼  2009 (14)
    • ►  July (1)
    • ►  June (2)
    • ►  May (2)
    • ▼  April (2)
      • Cambiar espacios ' ' por guion bajo '_' recursivam...
      • Copiar archivos que contengan cierto string
    • ►  February (7)
  • ►  2008 (13)
    • ►  September (2)
    • ►  June (2)
    • ►  May (3)
    • ►  April (6)
  • ►  2007 (25)
    • ►  October (4)
    • ►  August (2)
    • ►  July (3)
    • ►  June (1)
    • ►  May (3)
    • ►  April (12)
Simple theme. Powered by Blogger.