檢索txt檔案中的檔案名 2024-7-2 • command-line 如何檢索txt檔案中的檔案名稱? 答案1 你可以執行 ls -1 >filename 這將重定向檔案中給定檔案名稱的輸出。 對於資料夾的內容: ls -1 foldername >filename 相關內容