From Fedora Project Wiki

Revision as of 16:30, 24 May 2008 by Ravidiip (talk | contribs) (1 revision(s))

脚本

保存邮件

WTF?!

[yuan@mstar Jan2008] $ cat > <code>uuid</code>

负责人整理列表

[yuan@mstar Jan2008] $ pwd
/home/yuan/fedora/FreeMedia/Jan2008

[yuan@mstar Jan2008] $ for i in <code>ls -t -r</code>; do \
cat $i |grep -e '^\(from\|for\)[^<] *' -o \
|sed -e 's/^from \+\(.*\) \+$/ * \1/' \
| sed -e 's/for \+\(.*\) \+media:/(\1)/' \
| tr '\n' ' '; echo; \
done > list

整理邮件地址

grep -e '^from' * -h |sed -e 's/^from \+\([^<] *\) \+\(.*\)/"\1" \2/'