On Sunday 27 April 2003 10:19 pm, Gerry wrote: > On Sun, 27 Apr 2003, peter wrote: > > and assumed that "ls -l * | grep "Mar 31" | cp /tmp/mysql/" > > 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. -- Jay Kline http://www.slushpupie.com/ _______________________________________________ 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