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