Skip to content

Latest commit

 

History

History
27 lines (27 loc) · 719 Bytes

README.md

File metadata and controls

27 lines (27 loc) · 719 Bytes

bash-libs

Function Libraries for Bash 4.x. Most of them should be self explaining. The source code has more documentation with parameters, return codes and outputs.

lib-string.sh

  • string_char_at
  • string_ends_with
  • string_is_empty
  • string_length
  • string_ltrim
  • string_replace_all
  • string_replace_first
  • string_rtrim
  • string_starts_with
  • string_substring
  • string_to_lowercase
  • string_to_uppercase
  • string_trim

lib-array.sh

  • array_add_elements
  • array_contains_all
  • array_contains_one
  • array_create
  • array_print_entry
  • array_print_indices
  • array_print_size
  • array_reverse_sort
  • array_sort
  • array_sort_wfct (pass a function to specify the sorting logic)