I found this command:
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/   /' -e 
's/-/|/' 

Which makes this:
   |-Mar17
   |---1300074369-chow
   |-----download
   |-------small
   |---1300421616-Cunningham
   |-----download
   |-------small

But I want to use `du` instead to convert this
2.0M    ./Mar17/1300074369-chow/download/small
2.0M    ./Mar17/1300074369-chow/download
2.0M    ./Mar17/1300074369-chow
2.1M    ./Mar17/1300421616-Cunningham/download/small
2.1M    ./Mar17/1300421616-Cunningham/download
2.1M    ./Mar17/1300421616-Cunningham
4.1M    ./Mar17

into this:
   |-Mar17 [4.3M]
   |---1300074369-chow [2.0M]
   |-----download [2.0M]
   |-------small [2.0M]
   |---1300421616-Cunningham [2.1M]
   |-----download [2.1M]
   |-------small [2.1M]


I realize it does it backwards and I can live with that...  OR mix the two to 
run the first command and run another command to get the folders total size or 
something... you know?

Thanks for the help,
Ryan_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to