in reply to Re: stat to identify files?
in thread stat to identify files?

That's what I'm trying to do, checking whether or not the link exists. Can you please elaborate? I don't understand what you want to say.


s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Replies are listed 'Best First'.
Re^3: stat to identify files?
by alexm (Chaplain) on Jun 11, 2008 at 18:19 UTC
    See -f under -X to check whether a filename is a symlink and use readlink to get the symlink value.

      ++! The best solution at all! Thanks a lot!


      s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
      +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e