I have a list of strings stored in $Lst
Example
set Lst = "John Fred Kate Paul"
I want to return 4 in this case.
I have a list of strings stored in $Lst
Example
set Lst = "John Fred Kate Paul"
I want to return 4 in this case.
in bash
$ Lst=(John Fred Kate Paul)
$ echo ${#Lst[@]}
4