Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2000 08:34:40 -0500 (CDT)
From:      Conrad Sabatier <conrads@home.com>
To:        Ryan.Gamo@sce.com
Cc:        freebsd-newbies@FreeBSD.ORG
Subject:   RE: renaming batch
Message-ID:  <XFMail.000519083440.conrads@home.com>
In-Reply-To: <OF34440983.2BCFE4E0-ON882568E3.0061FC45@sce.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 18-May-00 Ryan.Gamo@sce.com wrote:
> I want to rename a bunch of files in a directory. I want them to retain
> their current name but put a .txt at the end for ID purposes. How would I
> go about doing this?
> 
> mv ./* ./*.txt ???? doesn't work

for f in *
do
        mv $f $f.txt
done

-- 
Conrad Sabatier
http://members.home.net/conrads/
ICQ# 1147270



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.000519083440.conrads>