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 : 谢谢!
|