我如何让ls吐出一个递归的每行路径的平面列表?
例如,我只想要一个包含完整路径的文件列表:
/home/dreftymac/.
/home/dreftymac/foo.txt
/home/dreftymac/bar.txt
/home/dreftymac/stackoverflow
/home/dreftymac/stackoverflow/alpha.txt
/home/dreftymac/stackoverflow/bravo.txt
/home/dreftymac/stackoverflow/charlie.txt
Run Code Online (Sandbox Code Playgroud)
ls -a1 几乎做我需要的,但我不想要路径碎片,我想要完整的路径.