Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"Whip me. Beat me. Make me maintain AIX." (By Stephan Zielinski)


computers / comp.os.linux.misc / automated way to fix unpadded numbering?

SubjectAuthor
* automated way to fix unpadded numbering?candycanearter07
`* automated way to fix unpadded numbering?David W. Hodgins
 `- automated way to fix unpadded numbering?candycanearter07

1
automated way to fix unpadded numbering?

<udmg9p$veef$1@dont-email.me>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=11893&group=comp.os.linux.misc#11893

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no@thanks.net (candycanearter07)
Newsgroups: comp.os.linux.misc
Subject: automated way to fix unpadded numbering?
Date: Mon, 11 Sep 2023 02:40:41 -0500
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <udmg9p$veef$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 11 Sep 2023 07:40:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0160555cadb725b7cb2fa257ab1236ba";
logging-data="1030607"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//zU9/9GqKhaMq2nJiHWYfMeUWmseLnHPpZIXD3cgX6g=="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6WgFevjhQY9gz9orw1EXgTPVsvA=
Content-Language: en-US
 by: candycanearter07 - Mon, 11 Sep 2023 07:40 UTC

Hi,
I'm having an issue with a program not having an option to pad the
numbered files when exporting. It's "relatively" easy to fix with vidir
and using vim macros, but I was wondering if there was an automated way
to do it?

(converting 1.png, 2.png, 10.png to 001.png, 002.png, 010.png, etc..)
--
--
user <candycane> is generated from /dev/urandom

Re: automated way to fix unpadded numbering?

<op.2a3llfkaa3w0dxdave@hodgins.homeip.net>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=11896&group=comp.os.linux.misc#11896

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodgins@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.misc
Subject: Re: automated way to fix unpadded numbering?
Date: Mon, 11 Sep 2023 04:23:29 -0400
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <op.2a3llfkaa3w0dxdave@hodgins.homeip.net>
References: <udmg9p$veef$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="3d0770d62f8a5f060e8574d954b833b0";
logging-data="1049558"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EkZVEaoZ05eQNCREI7ycGpseLdEGqKhk="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:H0TZo2w6Gjyvh7CsaAtlIAcwW2g=
 by: David W. Hodgins - Mon, 11 Sep 2023 08:23 UTC

On Mon, 11 Sep 2023 03:40:41 -0400, candycanearter07 <no@thanks.net> wrote:
> Hi,
> I'm having an issue with a program not having an option to pad the
> numbered files when exporting. It's "relatively" easy to fix with vidir
> and using vim macros, but I was wondering if there was an automated way
> to do it?
>
> (converting 1.png, 2.png, 10.png to 001.png, 002.png, 010.png, etc..)

The man page for the rename command gives the following example ...
Given the files foo1, ..., foo9, foo10, ..., foo278, the commands

rename foo foo00 foo?
rename foo foo0 foo??

will turn them into foo001, ..., foo009, foo010, ..., foo278.

The rename command is part of the package util-linux.

Regards, Dave Hodgins

Re: automated way to fix unpadded numbering?

<udn231$11q9g$2@dont-email.me>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=11909&group=comp.os.linux.misc#11909

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no@thanks.net (candycanearter07)
Newsgroups: comp.os.linux.misc
Subject: Re: automated way to fix unpadded numbering?
Date: Mon, 11 Sep 2023 07:44:17 -0500
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <udn231$11q9g$2@dont-email.me>
References: <udmg9p$veef$1@dont-email.me>
<op.2a3llfkaa3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 11 Sep 2023 12:44:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0160555cadb725b7cb2fa257ab1236ba";
logging-data="1108272"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6fNop3PChzFtqPwuSZaE+X0olvHwVSQT19Ftr6qBxKg=="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:gtBzIZXddkirEyp6feyyZor2WDs=
In-Reply-To: <op.2a3llfkaa3w0dxdave@hodgins.homeip.net>
Content-Language: en-US
 by: candycanearter07 - Mon, 11 Sep 2023 12:44 UTC

On 9/11/23 03:23, David W. Hodgins wrote:
> On Mon, 11 Sep 2023 03:40:41 -0400, candycanearter07 <no@thanks.net> wrote:
>> Hi,
>> I'm having an issue with a program not having an option to pad the
>> numbered files when exporting. It's "relatively" easy to fix with vidir
>> and using vim macros, but I was wondering if there was an automated way
>> to do it?
>>
>> (converting 1.png, 2.png, 10.png to 001.png, 002.png, 010.png, etc..)
>
> The man page for the rename command gives the following example ...
>        Given the files foo1, ..., foo9, foo10, ..., foo278, the commands
>
>               rename foo foo00 foo?
>               rename foo foo0 foo??
>
>        will turn them into foo001, ..., foo009, foo010, ..., foo278.
>
> The rename command is part of the package util-linux.
>
> Regards, Dave Hodgins

You're a lifesaver, Dave.

--
--
user <candycane> is generated from /dev/urandom


computers / comp.os.linux.misc / automated way to fix unpadded numbering?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor