From owner-freebsd-questions Wed Feb 9 1:14:22 2000 Delivered-To: freebsd-questions@freebsd.org Received: from vinyl.sentex.ca (vinyl.sentex.ca [209.112.4.14]) by builder.freebsd.org (Postfix) with ESMTP id 5880D4872 for ; Tue, 8 Feb 2000 20:07:23 -0800 (PST) Received: from granite.sentex.net (granite-atm.sentex.ca [209.112.4.1]) by vinyl.sentex.ca (8.9.3/8.9.3) with ESMTP id XAA17147 for ; Tue, 8 Feb 2000 23:06:44 -0500 (EST) (envelope-from mike@sentex.net) Received: from chimp.simianscience.com (ospf-mdt.sentex.net [205.211.164.81]) by granite.sentex.net (8.8.8/8.6.9) with SMTP id XAA12732 for ; Tue, 8 Feb 2000 23:06:43 -0500 (EST) From: mike@sentex.net (Mike Tancsa) To: questions@freebsd.org Subject: Re: OFF TOPIC - Shell Script Question Date: Wed, 09 Feb 2000 04:05:10 GMT Message-ID: <38a0e70c.193731360@mail.sentex.net> References: <001101bf7273$e44dc250$070101c0@ruraltel.net> In-Reply-To: X-Mailer: Forte Agent .99e/32.227 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 8 Feb 2000 21:53:15 -0500, in sentex.lists.freebsd.questions you wrote: >Darryl Hoar wrote: >> >> Greetings, >> 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"}' >> >> but it does not 'execute' the mv command. How do I get this cooking ? Or, if you want to stick with the above, simply add a | sh to it. i.e. ls -tl | grep '1999' | awk '{print "mv " $9 " /home/darryl/test"}' | sh ---Mike Mike Tancsa (mdtancsa@sentex.net) Sentex Communications Corp, Waterloo, Ontario, Canada "Given enough time, 100 monkeys on 100 routers could setup a national IP network." (KDW2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message