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

  • 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
原文地址:https://www.cnblogs.com/rgqancy/p/7879099.html