1. 4
  1.  

  2. 1

    Somewhat relatedly, you can narrow down a list of filenames to only the ones that exist with ls file1 file2 file3 2> /dev/null. The extant filenames get printed to stdout, the ‘doesn’t exist’ errors get suppressed.