Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-21-2003, 10:55 AM   #1
LQ Newbie
Registered: Jul 2003
Location: Dracut, MA
Distribution: Redhat 9
Posts: 1

Rep: Reputation: 0
program that generates relative paths?

Hey all,
I need a program that, given a target directory, will spit out a relative path from the current directory to the target. The output I'm looking for is something like "../../../" Of course, the current directory has to be further down the tree than the target for this to work.

Does anyone know of such a utility?

Old 10-21-2003, 03:17 PM   #2
Registered: Sep 2003
Posts: 52

Rep: Reputation: 15
Actually, if the target were in a lower directory, you could get that to work as easily, I would think.

This doesn't really seem to me like an executable program you are talking about as much as just doing some script writing. What is your level of experience with linux? You could probably write it up yourself by looking at some scripting tutorials.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
bash: ln and relative paths tortle Programming 8 05-10-2010 06:50 AM
Absolute and relative paths Gins Linux - General 6 11-08-2008 09:48 PM
Symbolic Links, directories, and relative paths (../). Can it be done? jimwillsher Linux - Newbie 1 03-11-2005 06:27 PM
relative/absolute paths in Java djgerbavore Programming 2 10-26-2004 09:01 PM
Finding program paths davee Linux - Newbie 4 07-14-2003 09:17 AM

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration