-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 At some point hitherto, Michael O'Donnell hath spake thusly:
> A bit of tedium I'm hoping to avoid. [SNIP] > >Note that -print is the default action for find, and is > >never needed, except on some very old variants of Unix. > > Don't be dang pedantic! And note that the word I > used was "pedantic" and not the word which describes > the primary characteristic of certain local clergy... Hey, just trying to save you some tedium... One of my many personal philosopies is that, since I type soooo much anyway, I should conserve keystrokes when possible, so as to reduce the likelihood of (or perhaps only delay) getting an RSI. I'll often take an extra minute or two to think about the shortest (typing-wise) method of doing something, if the command line is going to be long. That may seem silly to some people, but hey - I never claimed not to be a silly person. :) Sometimes is also a nice mental exercise, which I can always use more of... > >Note also that you can't use the typical '/' character as > >the separator in sed's switch because the string you're > >switching the beginning of the line to contains it. > > The heck you can't! Just escape it with backslash: > > sed -e 's/^/http:\/\/servername\//' Well, yes, you can, but that's ugly, less readable, potentially more confusing, and again more typing than necessary. Which in my book translates to "can't." =8^) What I meant to say was you can't use them without escaping, and using a different character is easier and more readable. > And you can, in fact, use ';' (as well as the other characters > you mentioned) most of which would result in a less cluttered > expression than that backslash-escaped approach of mine. I wasn't sure about the semi; sed can use it as an expression separator, so I thought it might be prohibited. Obviously I didn't bother to test that theory... ;-) - -- Derek Martin [EMAIL PROTECTED] - --------------------------------------------- I prefer mail encrypted with PGP/GPG! GnuPG Key ID: 0x81CFE75D Retrieve my public key at http://pgp.mit.edu Learn more about it at http://www.gnupg.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8pggGdjdlQoHP510RAv6bAKCAnpq3eEavbxWKHnahJxHeS+GOKwCfdUY7 bAw02oigL21Mw9wPUUZjNEg= =+/dD -----END PGP SIGNATURE----- ***************************************************************** To unsubscribe from this list, send mail to [EMAIL PROTECTED] with the text 'unsubscribe gnhlug' in the message body. *****************************************************************