dundee / gdu

Fast disk usage analyzer with console interface written in Go
MIT License
3.75k stars 137 forks source link

provide multiple input to calculate total usage #367

Open daniejstriata opened 2 months ago

daniejstriata commented 2 months ago

Is your feature request related to a problem? Please describe. I have client data stored in batches and with some bash I can get a list of directories where the data is. Ideally I would want to pass this list to gdu so it can give me a total used. Potentially appending each location to the existing file output.

→ gdu -npsa /root /home
Error: accepts at most 1 arg(s), received 2

Describe the solution you'd like Ideally I would want to pass this list of different locations (containing many thousands of locations) to gdu so it can give me a total used.

Describe alternatives you've considered Now I have to run gdu for each location, save the total and calculate the total at the end.

dundee commented 2 months ago

I will be probably a bit difficult to implement but it makes a lot of sense!