bash - How to get the list of files in a directory in a shell script? - Stack Overflow

bash - How to get the list of files in a directory in a shell script? - Stack Overflow

瀏覽:847
日期:2025-04-24
I'm trying to get the contents of a directory using shell script. My script is: for entry in `ls $search_dir`; do echo $entry done where $search_dir is a relative path. However, $search ......看更多