From owner-freebsd-questions Tue Feb 8 12:48:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wondermutt.net (host75-157.student.udel.edu [128.175.75.157]) by builder.freebsd.org (Postfix) with ESMTP id 865643E12 for ; Tue, 8 Feb 2000 12:48:19 -0800 (PST) Received: from morgaine (morgaine.wondermutt.net [192.168.1.2]) by wondermutt.net (8.9.3/8.9.3) with SMTP id PAA23121; Tue, 8 Feb 2000 15:47:19 -0500 (EST) (envelope-from papalia@udel.edu) Message-Id: <4.1.20000208154025.009f3bb0@mail.udel.edu> X-Sender: papalia@mail.udel.edu X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Tue, 08 Feb 2000 15:42:31 -0500 To: , From: John Subject: Re: OFF TOPIC - Shell Script Question In-Reply-To: <001101bf7273$e44dc250$070101c0@ruraltel.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >I have a directory with a ton of files in it. I need to move some of >them to another >directory. Here's what I'm thinking: > >ls -tl | grep '1999' | awk '{print "mv " $9 " /home/darryl/test"}' I'm thinking that there has to be some way to do this with find maybe? I just reviewed the man pages and didn't find the option I was looking for, but maybe some modification on the line: find . -newer "your.oldest.1999.file.here" -ok mv {} /home/darryl/test \; Gotta be a better way, but I thought I'd throw that up as food for thought? Good luck, John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message