From owner-freebsd-questions@FreeBSD.ORG Tue Dec 16 19:20:51 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C5301BC8 for ; Tue, 16 Dec 2014 19:20:51 +0000 (UTC) Received: from mail-ob0-x231.google.com (mail-ob0-x231.google.com [IPv6:2607:f8b0:4003:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 89338E4A for ; Tue, 16 Dec 2014 19:20:51 +0000 (UTC) Received: by mail-ob0-f177.google.com with SMTP id va2so95486obc.8 for ; Tue, 16 Dec 2014 11:20:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=V33E4qkYCyzSj/WrlMpH9dUm3EWdxViFBby4wCTLg/E=; b=ncYWZVtxsf78sVt/1krAOn59ju435FPXKCEO058QCQoRfehZKcCiX7D5ZeahepFxK6 7C9ATtN+H3hozdvUyyNkvPcl/PMTuqGSP2tSPU4qmq2RYT+EPLSmAH+Ehj9VFwUlE4wj sc2D9/6HOQ/fjOXGhCQfX21GXnd+qghnDKZIUAFsctyhLtq/tuTCSs7EbixEhOOFkqkL 66JvwOwFsJSrOCRjq0FGmkjwX0ZV+XiYfJURlBBUgVsw0NCzfxwabDsjYlNCiXwCgV5B 2zMEXej2FR/PKbttypKANp7y1R8h05POaCjZ4P3gwfY8Cw832YjyDYba4Y5a0X496vpC Ocxg== MIME-Version: 1.0 X-Received: by 10.202.191.65 with SMTP id p62mr496719oif.38.1418757650907; Tue, 16 Dec 2014 11:20:50 -0800 (PST) Received: by 10.182.60.104 with HTTP; Tue, 16 Dec 2014 11:20:50 -0800 (PST) In-Reply-To: <20141216184002.GA26978@neutralgood.org> References: <54907B51.1060807@gmail.com> <20141216184002.GA26978@neutralgood.org> Date: Tue, 16 Dec 2014 11:20:50 -0800 Message-ID: Subject: Re: Perl rename utility assistance From: jungle Boogie To: kpneal@pobox.com Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2014 19:20:51 -0000 Hello Kevin, On 16 December 2014 at 10:40, wrote: > A little bit of quick scripting should do this without needing a > rename or whatever program. > > #! /bin/sh > > oname="$1" > nname=$(echo "$oname" | sed 's/_/ /') > > set -x > mv "$oname" "$nname" What if you have a directory full of files you want to update? > -- > Kevin P. Neal http://www.pobox.com/~kpn/ > > "I like being on The Daily Show." - Kermit the Frog, Feb 13 2001 -- ------- inum: 883510009027723 sip: jungleboogie@sip2sip.info xmpp: jungle-boogie@jit.si