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
Post a Comment