<div dir="auto">Thanks Glen, I missed that man page.<div dir="auto"><br></div><div dir="auto">-C</div><div dir="auto"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sep 2, 2017 12:48 AM, "Glenn Satchell" <<a href="mailto:glenn.satchell@uniq.com.au">glenn.satchell@uniq.com.au</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Christopher<br>
<br>
Here's what it says in the dhcp-eval man page<br>
<br>
substring (data-expr, offset, length)<br>
<br>
       The substring operator evaluates the data  expression  and<br>
       returns  the  substring  of  the result of that evaluation<br>
       that starts offset bytes from  the  beginning,  continuing<br>
       for  length  bytes.   Offset  and  length are both numeric<br>
       expressions.  If data-expr, offset or length  evaluate  to<br>
       null,  then the result is also null.  If offset is greater<br>
       than or equal to the length of the evaluated data, then  a<br>
       zero-length data string is returned.  If length is greater<br>
       then the remaining length  of  the  evaluated  data  after<br>
       offset, then a data string containing all data from offset<br>
       to the end of the evaluated data is returned.<br>
<br>
So just make length be a number bigger than your string is ever likely to<br>
be, eg 1000, or 10,000, or 1,000,000 say.<br>
<br>
regards,<br>
-glenn<br>
<br>
On Sat, September 2, 2017 12:03 am, Christopher Barry wrote:<br>
><br>
> Hello everyone,<br>
><br>
> I want to use the substring keyword to return a part of a string that<br>
> starts at character 5, and goes to the end of the string. The strings<br>
> will be of variable length. Do I simply omit the second numeric<br>
> parameter to accomplish that? I can't find anything about this in the<br>
> man pages.<br>
><br>
> Thanks<br>
><br>
> --<br>
> Regards,<br>
> Christopher<br>
> ______________________________<wbr>_________________<br>
> dhcp-users mailing list<br>
> <a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/dhcp-users</a><br>
><br>
<br>
<br>
______________________________<wbr>_________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/dhcp-users</a><br>
</blockquote></div></div>