From owner-freebsd-questions Mon Dec 14 20:26:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA06893 for freebsd-questions-outgoing; Mon, 14 Dec 1998 20:26:31 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from integral.on.ca (cr967899-a.lndn1.on.wave.home.com [24.112.14.35]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA06888 for ; Mon, 14 Dec 1998 20:26:29 -0800 (PST) (envelope-from empey@integral.on.ca) Received: from socrates ([192.168.1.2]) by integral.on.ca (8.8.5/8.8.5) with SMTP id XAA12491 for ; Mon, 14 Dec 1998 23:23:31 -0500 (EST) Message-Id: <199812150423.XAA12491@integral.on.ca> X-Sender: empey@integral.on.ca X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Mon, 14 Dec 1998 23:23:59 -0500 To: freebsd-questions@FreeBSD.ORG From: David Empey Subject: Two Questions Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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