LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-21-2003, 10:55 AM   #1
TheMaXX
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?

Thanks,
George
 
Old 10-21-2003, 03:17 PM   #2
ksun
Member
 
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:57 AM.

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