I need to count the number of times a character repeats in a string .
For example: How many times does the /
character appear in the string below?
'/ file / program-files / test / dev / dev1 / Central.pdf.gz'
This string will be inside a $v_dir_relatorio
variable.
I need the amount of bars to create a search logic for directories that the paths vary.