Skip to content

Provide path in output #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
msf1t opened this issue Nov 17, 2020 · 1 comment
Open

Provide path in output #41

msf1t opened this issue Nov 17, 2020 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@msf1t
Copy link

msf1t commented Nov 17, 2020

Great tool!

Would love to see the path in the output a la:

# diskus /tmp
57.87 MB (57,872,384 bytes) /tmp

Putting diskus in place greatly reduced the amount of time our previous du -sh script took, but I need the path name in the output. So I'm doing this for now, seems though that we lose human readable sizes when manipulating the stdout:

for i in ` find /share/users -mindepth 1 -maxdepth 1 | grep -v "^\.*$"`; do diskus -j 3 $i | awk -v dir=$i '{print $NF "\t\t\t" dir}' & done >> /tmp/diskus-$DATE.log

Output:

20966879414272    /share/users/mholmes
16338228916224    /share/users/sholmes
12737846097408    /share/users/jwatson

DANGER for anyone that finds this at random: The above launches a diskus process for everything found 1 layer in, if you have over 100 dirs and say only 96 cores, this will oversubscribe and you'll see a loadavg over 300.

@sharkdp
Copy link
Owner

sharkdp commented Nov 29, 2020

Sounds great!

@sharkdp sharkdp added good first issue Good for newcomers help wanted Extra attention is needed labels Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants