From Fedora Project Wiki
m (1 revision(s))
mNo edit summary
Line 23: Line 23:
grep -e '^from' * -h |sed -e 's/^from \+\([^<] *\) \+\(.*\)/"\1" \2/'
grep -e '^from' * -h |sed -e 's/^from \+\([^<] *\) \+\(.*\)/"\1" \2/'
</pre>
</pre>
[[Category: 中文]]
[[Category: 社区]]

Revision as of 12:02, 28 September 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/'