[lug] A Windows user's view of linux

Jeffrey Haemer jeffrey.haemer at gmail.com
Tue Aug 5 14:05:31 MDT 2008


For me, this:

  find . -type f | xargs file

(and the like) is easier to type, and remember how to type, than this:

  find . -type f -exec file '{}' \;

so I switched long ago.

(I post this only because I keep running into folks who've never heard of
xargs.  YMMV.)

On Tue, Aug 5, 2008 at 1:53 PM, Sean Reifschneider <jafo at tummy.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Stephen Queen wrote:
> >> me that a mortal could use the man page for "find" and understand how
> -exec
> >> works. It's just not possible.
> >
> > We refer to man pages as clik (CLear If Known).
>
> I don't know, perhaps you're thinking of a different version of it, but
> the example seems pretty clear to me:
>
>    find . -type f -exec file '{}' \;
>
>    Runs `file' on every file in or below the  current  directory.   Notice
>    that the braces are enclosed in single quote marks to protect them from
>    interpretation as shell script punctuation.   The  semicolon  is  simi-
>    larly  protected  by the use of a backslash, though ';' could have been
>    used in that case also.
>
> Though I think the last part of that paragraph probably meant "+" rather
> than ";"...
>
> Sean
> - --
> Sean Reifschneider, Member of Technical Staff <jafo at tummy.com>
> tummy.com, ltd. - Linux Consulting since 1995: Ask me about High
> Availability
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFImK/QxUhyMYEjVX0RArXiAJ9+l52ZnEjKZi0vzKTapfVyLYTJAQCghZQI
> 8NSvK5a0Aqq6u8IUy+L+6Ko=
> =r8Xl
> -----END PGP SIGNATURE-----
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>



-- 
Jeffrey Haemer <jeffrey.haemer at gmail.com>
720-837-8908 [cell]
http://goyishekop.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20080805/a0ccea59/attachment.html>


More information about the LUG mailing list