[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: susbtituindo minucula por maiuscula



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Olá Leandro,

Leandro Moreira escreveu:
> Caros,
> Preciso substituir uma sequencia de caracteres minuscula por maiusculas,
> estou usando a seguinte expressao:
>  
>  sed "s/[a-z]/[A-Z]/g" /etc/hostname
> Preciso que o hostname do meu servidor seja apresnetado em caracter
> maiusculo so que ao inves disso ele me exibe [A-Z] no lugar de cada
> caracter. Alguem pode me ajudar.

   Veja :

andrelop@white:~$ echo ABC > teste
andrelop@white:~$ cat teste
ABC
andrelop@white:~$ tr '[:upper:]' '[:lower:]' < teste
abc
andrelop@white:~$

   Espero ter ajudado.

- --
André Luís Lopes
andrelop@{andrelop,debian}.org
http://www.andrelop.org/blog/
Public GPG KeyID : 9D1B82F6


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmkX/sACgkQW4/i9Z0bgvatdwCeLnkeIW7XzJu2cqRSk99WCNgN
HGsAn0GBrnf8tg0z7JZlWkGj+y1EqwcZ
=widj
-----END PGP SIGNATURE-----


Reply to: