由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 怎么给一个txt里面的email address发邮件?
相关主题
How to sort email address?[转载] perl: regex
Re: how to change all the files .cpp to .Cquestion on Perl
help! how to do this?pkgadd on Solaris
关于emacs一问。Perl: hash numerical sort
文件改名一问?[转载] grep question
怎么样循环执行一个命令?perl 新手弱问
manage cisco router[转载] Sendmail的问题?
[转载] Shell高手看过来。How to block an email address in telnet?
相关话题的讨论汇总
话题: address话题: email话题: csh话题: mail话题: script
进入Unix版参与讨论
1 (共1页)
N****O
发帖数: 4202
1
用shell script...
我有一堆email address在一个address.txt里。怎么才能让这个script file reads
from address.txt, and sends the message in another file (eg.text.txt) to
every email address呢?
我知道发给一个email address是:mail a*[email protected] < text.txt
谢谢!
z********0
发帖数: 9013
2
#!/bin/bash
while read emailaddr; do
mail $emailadr < mymessage.txt
done < "yourfile"
like this?
z********0
发帖数: 9013
3
oh csh
I'm not familiar with csh
hope it works:
#!/bin/csh
foreach line ("`cat myemailfile`")
mail $line < message.txt
end
T**********l
发帖数: 12149
4

/* */ < text.txt

【在 N****O 的大作中提到】
: 用shell script...
: 我有一堆email address在一个address.txt里。怎么才能让这个script file reads
: from address.txt, and sends the message in another file (eg.text.txt) to
: every email address呢?
: 我知道发给一个email address是:mail a*[email protected] < text.txt
: 谢谢!

T**********l
发帖数: 12149
5

/* */ < text.txt

【在 N****O 的大作中提到】
: 用shell script...
: 我有一堆email address在一个address.txt里。怎么才能让这个script file reads
: from address.txt, and sends the message in another file (eg.text.txt) to
: every email address呢?
: 我知道发给一个email address是:mail a*[email protected] < text.txt
: 谢谢!

N****O
发帖数: 4202
6
用C-shell script...
我有一堆email address在一个address.txt里。怎么才能让这个script file reads
from address.txt, and sends the message in another file (eg.text.txt) to
every email address呢?
应该是用cat,set,foreach之类的command.
我知道发给一个email address是:mail [email protected]
/* */ < text.txt
谢谢!
z********0
发帖数: 9013
7
#!/bin/bash
while read emailaddr; do
mail $emailadr < mymessage.txt
done < "yourfile"
like this?
z********0
发帖数: 9013
8
oh csh
I'm not familiar with csh
hope it works:
#!/bin/csh
foreach line ("`cat myemailfile`")
mail $line < message.txt
end
T**********l
发帖数: 12149
9

/* */ < text.txt

【在 N****O 的大作中提到】
: 用C-shell script...
: 我有一堆email address在一个address.txt里。怎么才能让这个script file reads
: from address.txt, and sends the message in another file (eg.text.txt) to
: every email address呢?
: 应该是用cat,set,foreach之类的command.
: 我知道发给一个email address是:mail [email protected]
: /* */ < text.txt
: 谢谢!

T**********l
发帖数: 12149
10

/* */ < text.txt

【在 N****O 的大作中提到】
: 用C-shell script...
: 我有一堆email address在一个address.txt里。怎么才能让这个script file reads
: from address.txt, and sends the message in another file (eg.text.txt) to
: every email address呢?
: 应该是用cat,set,foreach之类的command.
: 我知道发给一个email address是:mail [email protected]
: /* */ < text.txt
: 谢谢!

1 (共1页)
进入Unix版参与讨论
相关主题
How to block an email address in telnet?文件改名一问?
pine filter怎么样循环执行一个命令?
用pine check email, how to block a address?manage cisco router
How to know the physical memory address?[转载] Shell高手看过来。
How to sort email address?[转载] perl: regex
Re: how to change all the files .cpp to .Cquestion on Perl
help! how to do this?pkgadd on Solaris
关于emacs一问。Perl: hash numerical sort
相关话题的讨论汇总
话题: address话题: email话题: csh话题: mail话题: script