Jay, (or anyone else for that matter)
Is there a way to make the find command find a file with an exact
time?
Your example might work in this specific instance iff the only files with
that date (not time) are the mysql files but sometimes I want to find the
ones with an exact time.  I usually kludge some cut line, but that seems
tacky. There aught to be a more elegant way of doing it.

--
Gerry Skerbitz
gsker at tcfreenet.org

On Mon, 28 Apr 2003, Jay Kline wrote:
> On Sunday 27 April 2003 10:19 pm, Gerry wrote:
> > You COULD
> > cp `ls -l * | grep "Mar 31" | cut -c57-` /tmp/mysql
> > or, as long as you've gotten that far,
> > chown root:mysql `ls -l * | grep "Mar 31" | cut -c57-`
> >
> > There ought to be a find command to find an exact time, but I couldn't find
> > one.
>
> look up the find command
> First, make sure the command works by seeing what it prints:
> find /usr/bin -maxdepth 1  -daystart -ctime 28 -print
> Then change the owner
> find /usr/bin -maxdepth 1 -daystart -ctime 28 -exec chown root.mysql  \{\}  \;
>
> Another good option would be to look at xargs if you have the arguments on
> stdout.


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list