From owner-freebsd-questions@FreeBSD.ORG Fri Sep 16 18:29:58 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EC1A16A420 for ; Fri, 16 Sep 2005 18:29:58 +0000 (GMT) (envelope-from freebsd@philip.pjkh.com) Received: from zhonka1.zhonka.net (zhonka1.zhonka.net [66.228.195.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B3AB43D48 for ; Fri, 16 Sep 2005 18:29:57 +0000 (GMT) (envelope-from freebsd@philip.pjkh.com) Received: from wolf.pjkh.com ([66.228.196.74]) by zhonka1.zhonka.net (Post.Office MTA v3.5.3 release 223 ID# 0-58414U4500L450S0V35) with ESMTP id net for ; Fri, 16 Sep 2005 11:29:56 -0700 Received: from localhost (localhost [127.0.0.1]) by wolf.pjkh.com (Postfix) with ESMTP id E9E525857 for ; Fri, 16 Sep 2005 11:29:53 -0700 (PDT) Received: from wolf.pjkh.com ([127.0.0.1]) by localhost (wolf.pjkh.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 86514-09 for ; Fri, 16 Sep 2005 11:29:53 -0700 (PDT) Received: by wolf.pjkh.com (Postfix, from userid 1000) id B2BB25853; Fri, 16 Sep 2005 11:29:53 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by wolf.pjkh.com (Postfix) with ESMTP id AD0435823 for ; Fri, 16 Sep 2005 11:29:53 -0700 (PDT) Date: Fri, 16 Sep 2005 11:29:53 -0700 (PDT) From: Philip Hallstrom To: questions@freebsd.org In-Reply-To: Message-ID: <20050916112844.F87866@wolf.pjkh.com> References: <015201c5bad6$78eaf940$dc96eed5@ihlasnetym> <20050916161035.GA14183@kuckucksei.jogla> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at pjkh.com Cc: Subject: Re: how to convert lower case to uppercase in a word in a line ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2005 18:29:58 -0000 > On 9/16/05, Jonathan Glaschke wrote: >> Hello, >> On Fri, Sep 16, 2005 at 06:51:16PM +0300, Yavuz Maslak wrote: >>> Hello >>> >>> There is a word that consists lowercases. >>> How to change all of letters capital letters in stead of lowercase ? >>> is there any script about that ? >>> Thanks >>> _______________________________________________ >> Or you do this using perl: >> >> $ perl -e 'chomp && system("mv $_ ".uc($_)) foreach `ls`;' >> > > sed, awk, python, php, ruby, versions are to follow > shortly :) Or, just install mmv from ports... from the man page... Mmv moves (or copies, appends, or links, as specified) each source file matching a from pattern to the target name specified by the to pattern. This multiple action is performed safely, i.e. without any unexpected deletion of files due to collisions of target names with existing file- names or with other target names. Furthermore, before doing anything, mmv attempts to detect any errors that would result from the entire set of actions specified and gives the user the choice of either proceeding by avoiding the offending parts or aborting.