jimmah | yay! pak33m registered for the release party with two additional and super cute attendees :) | 16:24 |
---|---|---|
jimmah | hehe, I mean loco party | 16:28 |
ghuru | hey all | 17:14 |
ghuru | anyone good at bash scripting? | 17:14 |
mhall119 | nobody is really good at bash scripting, we mostly just type semi-randomly until something works | 17:59 |
ghuru | hello? | 20:17 |
itnet7 | ghuru: hey there, what are you trying to do? | 20:22 |
ghuru | hey itnet7 | 20:22 |
ghuru | just a simple bash script | 20:22 |
ghuru | but i am having a stupid problem | 20:22 |
ghuru | du and sort it by name | 20:22 |
itnet7 | I might be able to help you with a 'simple' one | 20:22 |
ghuru | so for example | 20:23 |
ghuru | du -h --max-depth=1 --exclude "./.*" | sort | 20:23 |
ghuru | try that on your laptop and you will see | 20:23 |
ghuru | crap got it to work | 20:24 |
ghuru | but open for other ideas ;) | 20:24 |
itnet7 | You can base other parameters to sort it by size and all with still displaying the name, not sure exactly what you really need. | 20:30 |
ghuru | i actullay found something simple | 20:38 |
ghuru | du -h --max-depth=1 --exclude "./.*" | sort -k2 | 20:39 |
ghuru | -k2 sorts it by the 2nd column, which is the name | 20:39 |
ghuru | you can still send me yours itnet7 | 20:40 |
itnet7 | ghuru: I pm'd you the one that I have used in the past, might not be what you're looking for | 20:58 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!