Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (16 sloc) 672 Bytes
layout title published tags
default
string_tail
true
reference
text functions
functions
text
string_tail
tail
substring

[%CFEngine_function_prototype(data, max)%]

Description: Returns the last max bytes of data.

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

[%CFEngine_function_attributes(data, max)%]

Example:

[%CFEngine_include_snippet(string_tail.cf, #+begin_src cfengine3, .*end_src)%]

Output:

[%CFEngine_include_snippet(string_tail.cf, #+begin_src\s+example_output\s*, .*end_src)%]

History: Introduced in CFEngine 3.6

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

You can’t perform that action at this time.