From Fedora Project Wiki
mNo edit summary |
m (moved Zh/Distribution/FreeMedia/Scripts to Distribution/Zh/FreeMedia/Scripts: for keeping it related to another pages using actual translation practice) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 26: | Line 26: | ||
[[Category: | [[Category: 活动]] | ||
Latest revision as of 11:22, 11 February 2011
脚本
保存邮件
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/'