REXX equivalent in (Ubuntu) Linux?

Scott Allen mlxxxp-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri May 21 16:59:41 UTC 2010


On 21 May 2010 11:12, Lennart Sorensen <lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org> wrote:
> Then you could do:
>
> rename 's/^([0-9])_/0$1_/' *

Note that there is more than one version of rename on Linux systems.
Their usage and syntax varies. I believe Stephen is using Ubuntu
10.04. If so the one Lennart describes will match.

There is a different version provided in the util-linux-ng package. In
Ubuntu 10.04 the command for this version is rename.ul but in other
distributions it may be what you get if you just use rename.

Try "rename -h" first to find verify that it works the way you expect.
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list