Re: trying to find a path/file...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09Jul2009 19:27, bruce <bedouglas@xxxxxxxxxxxxx> wrote:
| trying to figure out how to craft a find cmd to find a given file in a dir,
| that is changed more than x mins in the past
| 
| i thought i could use a combination of find, wholename, and cmin... but
| those isn't giving me what i'm looking for... it's not returning any
| files...
| 
| thought i could do a pipe, but that didn't work either
| 
| i thought
|  find . /foo/*.txt -cmin -10 would work, but that's not using the change
| "cmin" attribute...
| 
| so i've also tried
|  find . -cmin -10 -wholename '/foo/*.txt'  with no luck as well...

-10 is _less_ than 10 minutes in the past. Sure you don't mean +10?

Also, why -wholename (which I don't use myself much, since it's
GNU-specific I think)?

If you leave off the "-cmin -10", does the file show up at all?

What do these do?

  find /foo/*.txt -ls
  find /foo/*.txt -cmin +10 -ls
  find /foo/*.txt -cmin -10 -ls

Don't forget that while you _usually_ point find at directories, it can
be pointed at files too.

Also consider:

  find /foo -depth 1 -name '*.txt' -ls
  find /foo -depth 1 -name '*.txt' -cmin +10 -ls

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Expect all you want no one can force me to say anything intelligent.    - Babs

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux