Hacker News new | ask | show | jobs
by btschaegg 2324 days ago
If you're just wondering, try:

  test -e file
or:

  if [ -e file ]; then
      echo "File exists!"
  else
      echo "File does not exist!"
  fi
Edit: Untested, I'm currently not at my desk to verify it :)