[Cialug] Help finding file?
Nathaniel Petersen
major.stubble at gmail.com
Tue Jan 3 08:20:50 CST 2012
On Mon, Jan 2, 2012 at 4:50 PM, Josh More <jmore at starmind.org> wrote:
> It's worth noting that, while "find" is on every *nix system I've
> used, "find -iname" is not. I believe that that that option, like
> "grep -i" is a GNU extension.
>
> Just so people aren't surprised when things fail on that HPUX box that
> they're suddenly required to administer.
>
> -Josh
This is also true on Solaris boxes. I find that basic pattern expressions
work well in most *nix systems. This allows you to supply the upper and
lower case for what you are searching for like so:
Example:
cthulu at rlyeh:/tmp> ls
JDK_6u16 o27438029.out test.OuT test.OUT test.t
cthulu at rlyeh:/tmp> find . -name \*\.[Oo][Uu][Tt]\*
./o27438029.out
./test.OuT
./test.OUT
I find, though, that the GNU-based find utilities are exceptionally useful.
So, for myself, I include the CSWfindutils package on all my Solaris
installs. This provides me with /opt/csw/bin/gfind
and /opt/csw/bin/glocate.
-Nick
On Mon, Jan 2, 2012 at 4:48 PM, Don Ellis <don.ellis at gmail.com> wrote:
> > I haven't found a distro (including MacOSX) that doesn't have the find
> > command. And, on my Mac, I've been so disappointed with the new
> > version of 'Find File' (Spotlight) that I'm more likely to go to a
> > command line and use find to locate the file I want.
> >
> > --Don Ellis
> >
> >
> > On Mon, Jan 2, 2012 at 4:19 PM, Barry Von Ahsen <barry at vonahsen.com>
> wrote:
> >> which version of ubuntu? if it's new-ish, I thought unity had it built
> >> in (like on macs). my debian box with gnome3 has it built in, the same
> >> thing that searches for programs also searches for files (hit the
> >> windows/super key, then start typing)
> >>
> >>
> >> -barry
> >>
> >>
> >>
> >> On 01/02/2012 03:37 PM, Tom Sellers wrote:
> >>> What is the Ubuntu linux command to locate a file anywhere on the
> disk? I need to have it search the whole directory structure not just the
> current directory for the file.
> >>>
> >>>
> >>> If I use find by itself it lists all directory items but it I list the
> file name after the find command it only seems to search the local
> directory and tells me that it is not there.
> >>>
> >>>
> >>> Surely there is a command to do this. I just haven't been able to
> find it.
> >>>
> > _______________________________________________
> > Cialug mailing list
> > Cialug at cialug.org
> > http://cialug.org/mailman/listinfo/cialug
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cialug.org/pipermail/cialug/attachments/20120103/65fbfc14/attachment.html>
More information about the Cialug
mailing list