3
I need to count the number of times a character repeats itself in a string.
For example: How many times the character /
appears in the string down below?
'/file/program-files/test/dev/dev1/Central.pdf.gz'
That one string will be within a variable $v_dir_relatorio
.
I need the amount of bars to create a file search logic in directories that the paths vary.
Thank you Genos! It worked perfectly, but I can only mark as a solution a reply, thanks!
– LeoGallerDev