[lug] A Windows user's view of linux
Sean Reifschneider
jafo at tummy.com
Tue Aug 5 13:53:52 MDT 2008
-----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-----
More information about the LUG
mailing list