From Fedora Project Wiki
mNo edit summary |
|||
Line 26: | Line 26: | ||
[[Category: | [[Category: 活动]] | ||
Revision as of 07:59, 12 December 2008
脚本
保存邮件
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/'