• Don't use ls | grep. Use a glob or a for loop with a condition to allow non-alphanumeric filenames.
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions:
  • Related resources: