Results 1 to 2 of 2
Hi to all
I created a script where you input a user, it will summarized all the subdir in the Maildir dir. However, I don't have an idea how I ...
- 04-16-2007 #1Linux Newbie
- Join Date
- Mar 2006
- Posts
- 101
how to display files in Maildir directory of all user
Hi to all
I created a script where you input a user, it will summarized all the subdir in the Maildir dir. However, I don't have an idea how I will display the size of all user's subdir in Maildir dir without inputting any user. Below is my sample script:
TIA#!/bin/bash
# Display designated size files
echo -n "Type user: "
read input
du -hc /home/$input/Maildir
- 04-16-2007 #2What is the output of the command? Maybe change the -hc for -hs in the du command.
Originally Posted by packets "I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327


Reply With Quote