我想输出如下面的例子所示。获取与其绝对路径hirarchically文件列表
[email protected]:~/.atom# du -sh */* | awk '{print $2}'
blob-store/BLOB
blob-store/INVKEYS
blob-store/MAP
compile-cache/less
compile-cache/root
compile-cache/style-manager
packages/README.md
storage/application.json
[email protected]:~/.atom#
但是,ls并没有给出它的任何选项/参数的输出。 'ls -R
'给出路径,然后其内容不是具有其绝对路径的文件名。
我在编写脚本时经常需要这个,有人可以帮助我吗?感谢提前堆。
可能的重复[如何列出文件的绝对路径在Linux?](http://stackoverflow.com/questions/246215/how-can-i-list-files-with-their-absolute -path-in-linux) – putonspectacles
请参阅http://stackoverflow.com/questions/246215/how-can-i-list-files-with-their-absolute-path-in-linux – putonspectacles