Visit Jeremy's Blog.
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, 09: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, 02: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 05:50 AM
Absolute and relative paths Gins Linux - General 6 11-08-2008 08:48 PM
Symbolic Links, directories, and relative paths (../). Can it be done? jimwillsher Linux - Newbie 1 03-11-2005 05:27 PM
relative/absolute paths in Java djgerbavore Programming 2 10-26-2004 08:01 PM
Finding program paths davee Linux - Newbie 4 07-14-2003 08:17 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 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
Open Source Consulting | Domain Registration