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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -