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

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

 



On Fri, 2009-07-10 at 00:25 -0700, suvayu ali wrote:
> 2009/7/9 bruce <bedouglas@xxxxxxxxxxxxx>:
> > never mind!!
> >
> > arrggh.. figured it out... you can use the path, followed by the time, and
> > the name...
> >
> > kind of like...
> >
> > find /foo  -name "*.tz* -cmin -200
The -name option will not work with only one quote
Needs to be: -name "*.tz"
This restricts the expansion of the glob to be done by find , rather
than the shell. \*.tz should also work.
> >
> > which gets the targeted file...
> 
> find can be very picky about the syntax. The flag -name matches the
> file name exactly, so matching a file can be tricky. It however
> accepts file globs, so something like '-name \*.txt' is usually
> effective. Its safer to escape the asterisk. You can use other options
> like -mmin or -amin to find by modification time or access time.
> 
> find with -exec or find -print0 with xargs -0 are my favourite set of
> commands, after all find forms the backend for almost any search
> functionality in most *nix apps (e.g. search in Nautilus) :)
> 
> -- 
> Suvayu
> 
> Open source is the future. It sets us free.
> 
--
=======================================================================
While money can't buy happiness, it certainly lets you choose your own
form of misery.
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@xxxxxxxxxxxxx

-- 
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