Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 439 Bytes

basename.markdown

File metadata and controls

21 lines (13 loc) · 439 Bytes
layout title published
default
basename
true

[%CFEngine_function_prototype(filename, optional_extension)%]

Description: Retrieves the basename of a filename.

This function implements the same behavior of basename program on Unix and Unix-like operating systems.

[%CFEngine_function_attributes(filename, optional_extension)%]

Example:

[%CFEngine_include_example(basename.cf)%]

History:

  • Introduced in 3.15.0