命令行把文件列表输出到一个文件里

  • linux 

  https://www.linuxquestions.org/questions/linux-general-1/ls-do-not-list-full-path-only-filename-657894/

ls --format single-column > a.txt

 https://unix.stackexchange.com/questions/22218/linux-ls-to-show-only-filename-date-and-size

stat -c "%n" * > c.txt

 

  • windows

    

dir GA*.txt /b/o:N > b.txt

 

posted @ 2017-11-22 14:37  任国强  阅读(525)  评论(0编辑  收藏  举报