summaryrefslogtreecommitdiff
path: root/examples/functions/mhfold
blob: 3c0c743ddf33b64b0cab2f2629aac4688ff4a353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# To: chet@ins.CWRU.Edu
# Subject: Bash functions
# From: Sandeep Mehta <sxm@philabs.Philips.Com>

# print MH folders, useful only because folders(1) doesn't print
# mod date/times

mhfold()
{
	list=`folders | awk '{if (1 < NR) print $1}'`
	/bin/ls -lag ~/Mail > /tmp/fold$$
	for i in $list; do
		grep $i /tmp/fold$$
	done
	/bin/rm -f /tmp/fold$$
}