A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.cfengine.com/latest/reference-functions-string_tail.html below:

string_tail - CFEngine 3.26 Docs

Prototype: string_tail(data, max)

Return type: string

Description: Returns the last max bytes of data.

If max is negative, then everything but the first max bytes is returned.

Arguments:

Example:

code

body common control
{
      bundlesequence => { "example" };
}

bundle agent example
{
  vars:
      "end" string => string_tail("abc", "1"); # will contain "c"
  reports:
      "end of abc = $(end)";

}

Output:

History: Introduced in CFEngine 3.6

See also: string_head(), string_length(), string_reverse().


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4