Date: Tue, 08 Feb 2000 15:42:31 -0500 From: John <papalia@udel.edu> To: <darryl@osborne-ind.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: OFF TOPIC - Shell Script Question Message-ID: <4.1.20000208154025.009f3bb0@mail.udel.edu> In-Reply-To: <001101bf7273$e44dc250$070101c0@ruraltel.net>
next in thread | previous in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.1.20000208154025.009f3bb0>