Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Feb 2000 14:34:25 -0600
From:      "Darryl Hoar" <darryl@osborne-ind.com>
To:        <freebsd-questions@freebsd.org>
Subject:   OFF TOPIC - Shell Script Question
Message-ID:  <001101bf7273$e44dc250$070101c0@ruraltel.net>

next in thread | raw e-mail | index | archive | help
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 ?

BTW, I don't plan on doing this a bunch, so I would preferr Not to
install, learn
perl.  Instead, use the shell.

thanks,

Darryl Hoar
Computer Programmer / Systems Analyst
Osborne Industries, Inc.
darryl@osborne-ind.com
(785) 346-2192

PS.  If perls the only ticket, then I'll install and learn it.



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?001101bf7273$e44dc250$070101c0>