摘要:
#!/bin/shdate=`date+%Y-%m-%d`#获取当天的日期lastweek=`date+%Y-%m-%d-d"6daysago"`#获取6天前的日期sender="my@domain.com"#发信人emailr1="test1@domain.com"#收信人emailr2="test2@domain.com"#收信人emailreciver="$r1;$r2"subject="主题($date)"email_content_txt="out.txt 阅读全文
摘要:
Shell应用:批量将文件编码由gbk转utf-8,实例代码:[plain]#!/bin/bash//batch_change_GB2312_to_UTF-8cddirectoryfind./-typef-name"*.java"|whilereadline;doecho$lineiconv-fGB2312-tUTF-8$line>${line}.utf8mv$line${line}.gb2312mv${line}.utf8$linedone 阅读全文