From owner-freebsd-isp@FreeBSD.ORG Wed Jul 16 00:58:24 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9745F37B401 for ; Wed, 16 Jul 2003 00:58:24 -0700 (PDT) Received: from newmail.halenet.com.au (newmail.halenet.com.au [203.55.33.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA00643F75 for ; Wed, 16 Jul 2003 00:58:23 -0700 (PDT) (envelope-from tim@newmail.halenet.com.au) Received: from localhost (localhost [127.0.0.1]) by newmail.halenet.com.au (Postfix) with ESMTP id F050C20A36 for ; Wed, 16 Jul 2003 18:04:02 +1000 (EST) Received: from newmail.halenet.com.au ([127.0.0.1]) by localhost (newmail.halenet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14504-03 for ; Wed, 16 Jul 2003 18:04:02 +1000 (EST) Received: from laptop (temp23.halenet.com.au [203.55.33.225]) by newmail.halenet.com.au (Postfix) with ESMTP id 3508120A2A for ; Wed, 16 Jul 2003 18:04:02 +1000 (EST) Message-ID: <002201c34b6f$886cf180$6500a8c0@halenet.com.au> From: "Tim" To: Date: Wed, 16 Jul 2003 17:54:49 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by amavisd-new at halenet.com.au Subject: converting caps in shell scripts X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2003 07:58:24 -0000 Hi All Can anyone suggest a method to convert capitals to lower case in a shell script. I have a radius log that I am trying to convert the usernames to all lower case characters. I am picking up the usernames using a test function which is failing because [ Able = able ] is not performing the query, as one would expect. The rest of the script I am using is written as a shell script and I don't really want to have to rewrite it in perl at present. I have done a man sh, man test etc but can't see anything in there that I can use. Do I need to re write it in perl? TIA Tim