Date: Wed, 09 Feb 2000 04:05:10 GMT From: mike@sentex.net (Mike Tancsa) To: questions@freebsd.org Subject: Re: OFF TOPIC - Shell Script Question Message-ID: <38a0e70c.193731360@mail.sentex.net> In-Reply-To: <MAIL38A0828F.6E5E703C@ds.net> References: <001101bf7273$e44dc250$070101c0@ruraltel.net> <MAIL38A0828F.6E5E703C@ds.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38a0e70c.193731360>
