摘要:
豆沙绿RGB值为(199,237,204) 阅读全文
摘要:
man.chinaunix.net/develop/c&c++/linux_c/default.htm 阅读全文
摘要:
learn.akae.cn/media/index.html 阅读全文
摘要:
#!/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 阅读全文
摘要:
javascript禁用backspace回退,shift+backspace前进,F5等刷新页面功能//禁用回退和刷新功能functionforbidBackSpace(){if(((event.keyCode==8)&&//BackSpace((event.srcElement.type!="text"&&event.srcElement.type!="textarea"&&event.srcElement.type!="password")||event.srcElement.re 阅读全文
摘要:
本博客除了少数自己总结的文章以外全为转载(篇幅非常短的为原创文章) 阅读全文
摘要:
crontab中date的%符号需要被转义* * * * * ! [ `date +\%d` -eq 2 ]&& shell.sh 阅读全文
摘要:
crontab实行的时候不会读取任何环境变量所以需要自己设置/etc/sysconfig/i18n为系统语言环境设置文件在shell开头导入系统语言环境设置文件中的语言环境变量export LANG="ja_JP.UTF-8"export LC_ALL="ja_JP.UTF-8" 阅读全文
摘要:
字符串长度shell>echo ${#string}shell>expr length $stringshell>expr "$string" : '.*'匹配字符串开头的子串长度expr match "$string" '$substring' $substring 是一个正则表达式.expr "$string" : '$substring'索引expr index $string $substring提取子串${string:position} 在$string 中 阅读全文