Execute a single command on the command line shell.
It can take the following qualifiers
Return the directory (or parent directory for a directory) of the path passed in.
Return the filename (or directory name for a directory) of the path passed in.
Return the absolute path of the file.
check if the path (file or directory) exists or not. If the path exists - then it returns true. example:
# if there is machine specific configuration then load it
- if exists <shell.computername>.bb:
- include <shell.computername>.bb
check if the path (file or directory) exists or not. If the path does not exist - then it returns true. This can be useful if you want to raise an error becuase one or more files does not exist.
r and n characters in the input will be replaced with \r and \n respectively.
Allows you to replace text in a string
Usage:
replace text to search in {*text to find*} {*replace with*}
Example:
# get the contents of the text file
- ser serverlocation = http://code.google.com/p/betterbatch/
- set mail_contents = {{{ type email_template.txt }}}
# replace the text 'SERVERLOCATION' in the email templaet
# with 'http://code.google.com/p/betterbatch/'
- echo {{{replace <mail_contents> {*SERVERLOCATION*} {*<serverlocation>*} }}}