Perl rename utility assistance

jungle Boogie jungleboogie0 at gmail.com
Tue Dec 16 19:20:51 UTC 2014


Hello Kevin,
On 16 December 2014 at 10:40,  <kpneal at 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 at sip2sip.info
xmpp: jungle-boogie at jit.si


More information about the freebsd-questions mailing list