Date: Wed, 31 Jul 2002 18:12:40 -0300 (ART) From: Fernando Gleiser <fgleiser@cactus.fi.uba.ar> To: Maciej Szewczyk <rodion@pirx.9lo.lublin.pl> Cc: <questions@FreeBSD.ORG> Subject: Re: files to files with .txt Message-ID: <20020731180902.I6656-100000@localhost> In-Reply-To: <20020731230256.A19666@pirx.9lo.lublin.pl>
index | next in thread | previous in thread | raw e-mail
On Wed, 31 Jul 2002, Maciej Szewczyk wrote:
> Hi,
> I have about 1000 files.
> 7
> ...
> ...
> 999
> 1000
> And now I must have 1000 files with .txt ->
IF you are using a Bourne-related shell (sh, ksh, bash...):
for var in `ls`; do mv ${var} ${var}.txt ; done
Fer
> ls -1
> 1.txt
> 2.txt
> 3.txt
> ...
> ...
> 998.txt
> 999.txt
> 1000.txt
>
> How can I do that.
> Tahnks for help.
>
> Maciej Szewczyk
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020731180902.I6656-100000>
