Is there a command to retrieve the absolute path given a relative path?

For example I want $line to contain the absolute path of each file in dir ./etc/

find ./ -type f | while read line; do
   echo $line
done

26 Answers
26

Leave a Reply

Your email address will not be published. Required fields are marked *