danielmoreira5
(usa CentOS)
Enviado em 06/08/2016 - 22:22h
Segue execução aqui também: Será que pode ser algo da distribuição? estou rodando em RHEL 7.
[root@xxxxxxx DOCUMENTOS]# ls -l
total 92
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 ADENDOS
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 ATAS
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 AVISOS
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 CADASTROS
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 CAPAS
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 CARTAS
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 CONTRATOS
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 DECLARAÇÕES
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 DEVOLUÇÕES
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 EDITAIS
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 FAX
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 HABILITAÇÃO
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 INDICES
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 INSTRUÇÕES_DE_TRABALHO
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 INSTRUÇÕES_NORMATIVAS
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 Nota Técnica
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 Orçamentos
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 Pareceres
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 Procedimento Documentado Corporativo
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 Propostas
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 Relatorios
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 Requisições
drwxr-xr-x 4 gsis gsis 4096 Aug 3 11:55 Termos
------------------------------------------------------------------------------------------------------
[root@elnbsbsrv21d DOCUMENTOS]# for DIR in $(ls -l|awk -F" " '/^d/ {print $9}');do
> rename 's/(.*)/\L$&/' "$DIR"
> done
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
[root@xxxxxx DOCUMENTOS]#