I am using for f in $(<uploads); do s=`echo "$PWD/$f"`;
to output the path for each file in a text file.
It works great
However I need the relative path to start with a specified directory.
In other words the top of the script will have a few questions
two of them being
1) what is the account directory(that would become the relative home)
2) what directory would you like to start from
The relevant part of this is 1) .
What I need the pwd command to do is take the variable coming from #1 and make that the relative home
SO if 1 equaled chris.domain.com
that all paths would start with /chris.domain.com
and not /home/httpd/vhosts/chris.domain.com
Thank you
Chris