From owner-freebsd-questions@FreeBSD.ORG Fri Feb 4 08:23:51 2005 Return-Path: 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 9E98716A4CE for ; Fri, 4 Feb 2005 08:23:51 +0000 (GMT) Received: from web51610.mail.yahoo.com (web51610.mail.yahoo.com [206.190.38.215]) by mx1.FreeBSD.org (Postfix) with SMTP id E6C1A43D45 for ; Fri, 4 Feb 2005 08:23:50 +0000 (GMT) (envelope-from jay2xra@yahoo.com) Received: (qmail 17781 invoked by uid 60001); 4 Feb 2005 08:23:50 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=q83k+md3vI74iAmTHmu5qPxa1n5g3FGx0pW3alk3lrIZYAhoDJ1ZEARQFJp1tmPL1eymjfHBeDUgC08Zk8LGwBWh1nNSkwcW9nQtsVvqH1JqmgKE1Nk+CglelACBwHRI+n++LWykzUfVRDUBUsXtuau1WGr0X0Zkv79VUHPqe0g= ; Message-ID: <20050204082350.17779.qmail@web51610.mail.yahoo.com> Received: from [202.249.25.43] by web51610.mail.yahoo.com via HTTP; Fri, 04 Feb 2005 00:23:50 PST Date: Fri, 4 Feb 2005 00:23:50 -0800 (PST) From: Mark Jayson Alvarez To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: How will I rename every file in a directory to their filenames appending anything? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2005 08:23:51 -0000 Example. I would want to rename every file that ends in .mp3 to their filename with appended .old. so that, test.mp3 will be renamed test.mp3.old? my initial command would then be: ls |grep mp3 |xargs -J # mv #..[this part is what trying to figure out] How will I tell the mv that its arguments would be the output of ls and append something like ".old" to it? ~ Thanks! __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail