I dont think so.. but you might find more creative ways of getting at those files. For example, if you are using an rpm, try rpm -q --filesbypkg mysql or on debian dpkg -L mysql-server (or whichever package you want) The problem with the "exact" time is the resolution of the timer.. it will display the Month/Day (and time if recent) but it stores seconds (and msec too?) So what you are looking for is a range that includes the whole day.. You might try using multiple -ctime tags (in accordance with other operators) something like `find -ctime +3 -and -ctime -4` (havnt tested it.. try for yourself) Jay > 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 _______________________________________________ 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