所以我知道如何在使用cmd的Windows上执行此操作,我想知道在mac上是否可以将文件夹/嵌套文件夹中的所有文件路径复制到.txt文件中。
答案 0 :(得分:0)
使用
解决了问题find /Users/Allington/Desktop/Client -type f > result.txt
返回
/Users/Allington/Desktop/Client/.DS_Store
/Users/Allington/Desktop/Client/Client account 1/Screen Shot 2016-12-14 at 16.07.34.png
/Users/Allington/Desktop/Client/Client account 1/Screen Shot 2017-01-10 at 12.13.32.png
/Users/Allington/Desktop/Client/Client account 1/Screen Shot 2017-01-10 at 15.15.27.png
/Users/Allington/Desktop/Client/Client account 1/Screen Shot 2017-01-10 at 15.15.42.png
/Users/Allington/Desktop/Client/Client Account 2/Screen Shot 2017-01-10 at 14.33.32.png
/Users/Allington/Desktop/Client/Client Account 2/Screen Shot 2017-01-10 at 14.33.40.png
/Users/Allington/Desktop/Client/Client Account 2/Screen Shot 2017-01-10 at 14.47.41.png
/Users/Allington/Desktop/Client/Client Account 2/Screen Shot 2017-01-10 at 15.15.51.png
/Users/Allington/Desktop/Client/Client Account 3/landingBannerimg.png
/Users/Allington/Desktop/Client/Client Account 3/Screen Shot 2017-01-10 at 14.57.14.png
/Users/Allington/Desktop/Client/Client Account 3/Screen Shot 2017-01-10 at 15.15.06.png
/Users/Allington/Desktop/Client/Client Account 3/Screen Shot 2017-01-12 at 13.03.57.png