oringillis oringillis 20-05-2024 Computers and Technology Answered #!/bin/bash ans=0 while [ ‘pwd‘ != "/" ] do (( ans = ans + 1 )) cd .. done echo $ans