/I'd just use:
du -h --max-depth=1 //path/to/some/directory/
/However that will only tell you how much is in each users' home directory, not how much that user is using.
rowan/
Craig White wrote:
>I've got the bash book in front of me and I've been searching the web
>and I'm thinking that this takes more than a 'cut' command.
>
>I'm trying to evaluate disk usage by users - much like a quota system.
>
>du -s /path/to/some/directory/* > output
>cut -f1 output; echo " - "; cut -f2 output
>
>looks like
>4136
>8956
> -
>/home/filesystems/samba/profiles/username
>/home/filesystems/samba/profiles/username2
>
>which I can't really script at all.
>
>I want to compare the -f1 value and output to a file for purposes of
>sending an email - is there someone who has done this already? Do I need
>to use awk or perl?
>
>Craig
>
>
>---------------------------------------------------
>PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
>To subscribe, unsubscribe, or to change you mail settings:
>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss