in reply to stat to identify files?

Why not just check if the link exists and create it if it does not?

Replies are listed 'Best First'.
Re^2: stat to identify files?
by Skeeve (Parson) on Jun 11, 2008 at 17:12 UTC

    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
      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