|
BSFL
0.1.0
Bash Shell Function Library
|
Functions | |
| str_replace (origin, destination, data) | |
| Replaces some text in a string. More... | |
| str_replace_in_file (origin, destination, file) | |
| Replaces some text in a file. More... | |
| to_lower (string) | |
| Converts uppercase characters in a string to lowercase. More... | |
| to_upper (string) | |
| Converts lowercase characters in a string to uppercase. More... | |
| trim (string) | |
| Removes whitespace from both ends of a string. More... | |
| str_replace | ( | origin | , |
| destination | , | ||
| data | |||
| ) |
Replaces some text in a string.
| origin | Content to be matched. |
| destination | New content that replaces the matched content. |
| data | Data to operate on. |
| str_replace_in_file | ( | origin | , |
| destination | , | ||
| file | |||
| ) |
Replaces some text in a file.
| origin | Content to be matched. |
| destination | New content that replaces the matched content. |
| file | File to operate on. |
| 0 | if the original content has been replaced. |
| 1 | if an error occurred. |
| to_lower | ( | string | ) |
Converts uppercase characters in a string to lowercase.
| string | String to operate on. |
| to_upper | ( | string | ) |
Converts lowercase characters in a string to uppercase.
| string | String to operate on. |
| trim | ( | string | ) |
Removes whitespace from both ends of a string.
| string | String to operate on. |
1.8.6