Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2014 11:20:50 -0800
From:      jungle Boogie <jungleboogie0@gmail.com>
To:        kpneal@pobox.com
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Perl rename utility assistance
Message-ID:  <CAKE2PDsB6KC1iNHcp4Tq0HHiavJpvQYqh6-GVHq9vF2thhBvVA@mail.gmail.com>
In-Reply-To: <20141216184002.GA26978@neutralgood.org>
References:  <54907B51.1060807@gmail.com> <20141216184002.GA26978@neutralgood.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Kevin,
On 16 December 2014 at 10:40,  <kpneal@pobox.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKE2PDsB6KC1iNHcp4Tq0HHiavJpvQYqh6-GVHq9vF2thhBvVA>