Get part of script run directory in bash

listed in answer

Get part of script run directory in bash
0 votes, 0.00 avg. rating (0% score)

ANSWER:

How about this?

echo $0%/*/*/*/*

by garyjohn from http://superuser.com/questions/417389