Originally Posted by argedion
recently working on a project that called to find out if a file existed or not I had no idea of how to do this in Linux. Not being always the sharpest tool in the shed I tried several ways and failed miserably. I searched a little but since I suck at searching (never know really what to ask) somehow though i seemed to have found my way and its really simple.
here is a test condition to find if a file exist or not using bash
if [[ -e "filename" ]] ; then
just thought I would share for those who didn't know
Is it okay if I post the contents of your PM here? Do you even still need help with it? Putting it here will benefit others, too, plus someone besides me can chime in!