Skip to main content
3 of 6
added 118 characters in body

handling filenames with space and unusual characters

So many answers can be simplified and easier understood, when these edge cases are omitted. So this question provides a canonical method to handle filenames with uncommon characters. #()%^*space* *newline* [];'@:<>,.

Why does my shell script choke on whitespace or other special characters?

X Tian
  • 10.7k
  • 13
  • 6