From owner-freebsd-questions Wed Jul 31 14:15: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E02C37B400 for ; Wed, 31 Jul 2002 14:15:01 -0700 (PDT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id A861643E4A for ; Wed, 31 Jul 2002 14:14:59 -0700 (PDT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from localhost (localhost [127.0.0.1]) by cactus.fi.uba.ar (8.11.6/8.11.6) with ESMTP id g6VLCe111345; Wed, 31 Jul 2002 18:12:41 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Wed, 31 Jul 2002 18:12:40 -0300 (ART) From: Fernando Gleiser X-X-Sender: To: Maciej Szewczyk Cc: Subject: Re: files to files with .txt In-Reply-To: <20020731230256.A19666@pirx.9lo.lublin.pl> Message-ID: <20020731180902.I6656-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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