Date: Tue, 8 Feb 2000 23:34:12 +0000 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Darryl Hoar <darryl@osborne-ind.com> Cc: freebsd-questions@freebsd.org Subject: Re: OFF TOPIC - Shell Script Question Message-ID: <20000208233412.D3663@strontium.scientia.demon.co.uk> In-Reply-To: <001101bf7273$e44dc250$070101c0@ruraltel.net> References: <001101bf7273$e44dc250$070101c0@ruraltel.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Darryl Hoar wrote: > 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 ? Everyone's given a different way, but the simple answer is to pipe the output of the above into sh to execute the commands. > BTW, I don't plan on doing this a bunch, so I would preferr Not to > install, learn > perl. Instead, use the shell. You don't have to install perl, it's in the base system (/usr/bin/perl), but you'd still have to learn it. I'd recommend learning Perl, if not for this, then for other things, it's bloody useful. -- Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D 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?20000208233412.D3663>