<div dir="ltr">My syntax in the subject heading was incorrect. I thought I could use man page syntax, but the square brackets indicate an optional string. <div><br></div><div>If I were to use regular expressions, the low-level commands and recommended commands would look like this:</div><div><br></div><div>{"user"}{"add"|"del"} and {"add"|"del"}{"user"}</div><div><br></div><div>which I would shorten to user{add|del} and {add|del}user.</div><div><br></div><div>Does anyone know of a better syntax?</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 31 Mar 2016 at 08:31 El Fontanero <<a href="mailto:el.fontanero@gmail.com">el.fontanero@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
<div>On 30/03/16 02:19 PM, Ivan Avery Frey
wrote:<br>
</div>
<blockquote type="cite">In Debian useradd and userdel are low level utilities
and their man pages recommend that administrators use adduser and
deluser.
<div><br>
</div>
<div>I've found a way to differentiate between the low level
utilities and the recommended ones.</div>
<div><br>
</div>
<div>The low level utilities use "Latin" order where the verb
component comes after the object and the recommended commands
the other way around.</div>
<div><br>
</div>
<div>So the recommended commands' syllables' order matches that of
our everyday language while the low level utilities' syllables'
order matches that of a "dead" language.</div>
<fieldset></fieldset>
</blockquote>
<br></div><div text="#000000" bgcolor="#FFFFFF">
Quod erat demonstrandum, eh Ivan?<br>
<br>
Beats going to the man pages every time I need one of them ;-)<br>
<br>
CHeers,<br>
Mik<br>
</div>
---<br>
Talk Mailing List<br>
<a href="mailto:talk@gtalug.org" target="_blank">talk@gtalug.org</a><br>
<a href="https://gtalug.org/mailman/listinfo/talk" rel="noreferrer" target="_blank">https://gtalug.org/mailman/listinfo/talk</a><br>
</blockquote></div>