摘要:到rpmfind可以下载到expect#----------------------------------------------例一:追加到文本前(利用vi)#!/usr/bin/expectset a [lindex $argv 0]set b [lindex $argv 1]spawn vi $bexpect "*"send "o"send &quo......
摘要:#!/bin/shls -l > ls.txtfilename=`awk {print } ls.txt`sed -i s/beijing/tianjin/ $filename可以批量把当前目录下文件内带有"beijing"字符的替换成"tianjin"#!/bin/shls -l > ls.txtfilename=`awk {print } l......
How to send mail with attachment in UNIXthe script show how to send mail with attachment in unix.
#!/bin/ksh 【程序编程相关:^和$在sed和awk中的含义】
the attchment is an ascii file.(binary file should have another tool to convert it) . 【推荐阅读:我的博客地址改了】
【扩展信息:
Sed命令总汇】
#mail infomation
filename=test.csv subject="test email with attachment" body="this is a test mail." mailfrom=rollingpig@163.com mailto=serol_luo@gmail.com
#boundary is random string to seperate parts of mail
boundary=396d983d6b89a #temporay file,to store mail content tmpfile=/tmp/a.tmp...
下一页 摘要:简介 提问之前 怎样提问 谨慎选择论坛 尽量使用邮件列表 用辞贴切,语法正确,拼写无误 用易读格式发送问题 使用含义丰富,描述准确的标题 精确描述,信息量大 话不在多 只说症状,不说猜想 按时间顺序列出症状 别要求私下答复 明白你想问什么 别问应该自己解决的问题 去除无意义的疑问 谦逊绝没有害处,而且常帮大忙 问题解决后,加个简短说明 如何理解答案 rtfm和stfw:别烦我啦 还是不懂:( 面对......