开发者

Exporting a dir treefile into a file

开发者 https://www.devze.com 2023-01-26 11:21 出处:网络
I want to export all the filenames of a directory into a fil开发者_JAVA技巧e.Is there any idea on how to implement this?In linux you can do this as find /path/to/dir -maxdepth 1 -type f > filenames

I want to export all the filenames of a directory into a fil开发者_JAVA技巧e.Is there any idea on how to implement this?


In linux you can do this as find /path/to/dir -maxdepth 1 -type f > filenames.txt. Without much more to go on, I can't really tell you much else.

What Operating System are you doing this on? Do you need to do it in some program or from the command line? Is there some format to the text file? These are things you need to include in the question to get better answers.

0

精彩评论

暂无评论...
验证码 换一张
取 消