Find the depth of the current path

前端 未结 0 848
天命终不由人
天命终不由人 2021-02-11 07:09

How can I write a shell script to find the depth of the current path?

Assuming I am in:

/home/user/test/test1/test2/test3

It should ret

相关标签:
回答
  • 消灭零回复
提交回复
热议问题