path3="a/b/c"
command="ls -1q ${!path3}* | wc -l "
length="$(command)"
echo $length
I am trying to move to folder assigned to variable path3, I am not getting any value of length when executing this code. What is the issue in my code?
I am expecting some value for length variable
New contributor
Prashant Kumar Jha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.