bash - Generating a file path -


does know tool showing path 1 file another? ie, if css file in:

/user/foo/bar/source/assets/myscreen  

and image in:

/user/foo/bar/gamethings/smallimages 

how can quickly, without having count file levels (which simple, tedious, , has done often), generate path css image?

first, realpath(1) gnu coreutils. then:

$ realpath --relative-to=/user/foo/bar/source/assets/myscreen /user/foo/bar/gamethings/smallimages ../../../gamethings/smallimages 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -