Bash array question: How to add files from a directory into an array in a shell script

前端 未结 0 1517
温柔的废话
温柔的废话 2020-12-30 12:07

I’m having trouble getting a list of files into an array. arr=( * ) works when i’m in the directory in question, but arr=( path-to-dir/* ) dosen’t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题