From owner-freebsd-questions Mon Dec 14 21:36:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA13979 for freebsd-questions-outgoing; Mon, 14 Dec 1998 21:36:18 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from thor.afnetinc.com (thor.afnetinc.com [206.40.232.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA13973 for ; Mon, 14 Dec 1998 21:36:16 -0800 (PST) (envelope-from efinley@efinley.com) Received: from pm3-0-ip6.afnetinc.com ([206.40.232.213]) by thor.afnetinc.com with smtp (Exim 2.05 #1) id 0zpn9R-0000LM-00; Mon, 14 Dec 1998 22:36:06 -0700 From: efinley@efinley.com (Elliot Finley) To: David Empey Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Two Questions Date: Tue, 15 Dec 1998 05:37:59 GMT Organization: Hiawatha Coal Company Reply-To: efinley@efinley.com Message-ID: <3677f544.132595217@mail.afnetinc.com> References: <199812150423.XAA12491@integral.on.ca> In-Reply-To: <199812150423.XAA12491@integral.on.ca> X-Mailer: Forte Agent 1.5/32.451 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id VAA13975 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG For the first question, get mmv from the ports. As for the second question... I dunno. On Mon, 14 Dec 1998 23:23:59 -0500, you wrote: >There are a couple of things I need to be able to do, but which I'm having >trouble figuring out how to do. I *hope* the answers aren't as obvious as >I fear they are :) > >First, I need to be able to change the extension on a large number of files >in a directory from *.txt to *.ltr, but I cannot seem to get the mv (or >the cp and rm) commands to do the job. Is there something easier to do >than renaming the files one by one? > >Second, I'm writing a shell script to take input for the 'at' command. >Using 'read' to get input for the time and day are no problem, but I'm >having trouble devising a way to get a list of commands to run. What I >have in mind is this: read in variables for time and day, run the at >command (from a script) with the time and place as arguments. However, >what I need is a way to get the script to get a list of commands from the >user, or else perhaps a way to run the command (from the script) so that it >gives the user a chance to input a list of commands as would be the case if >it was run from the command line. > >Any suggestions appreciated, with thanks! > >David Empey >ICQ #7283765 > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > -- Later Science (efinley@efinley.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message