From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Alencar Alves de Lima Subject: Capitalize a variable in a shell script Date: Mon, 30 Oct 2006 16:26:09 -0200 Message-ID: <200610301626.12914.diegolima.br@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2099294.P586NfjTW9"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-newbie-owner@vger.kernel.org List-Id: To: linux --nextPart2099294.P586NfjTW9 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline How can I capitalize an existing variable in a shell script? Currently=20 $variable is www.domain.com, and I need to create a $variable1 that contain= s=20 WWW.DOMAIN.COM (I am currently using bash as shell) Thanks a lot =2D-=20 Diego Lima http://sg.homelinux.com:81 --nextPart2099294.P586NfjTW9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBFRkPEMQUVtGjCvrMRAlIAAJ9JPPAK1KDxXnuz0MJRg1GRqofRzwCghgxQ YEKIiJFGfuFXdaLMMlOUmq4= =CUGl -----END PGP SIGNATURE----- --nextPart2099294.P586NfjTW9-- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs