![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OS
文章平均质量分 81
zistrong
再盛大的人生,也不过这四个字——悲欢离合。终有相见,终有不见,终有相见如不见,终有不见亦如相见……
展开
-
一些shell
#在命令上使用viset -o vi#显示路径PS1=`hostname`'[$PWD]'#export PS1#将内容写入到文件中cat<<EndCfg>$szCfgFile[SYS]EndCfg#格式输出,不足10位,前面补零file_count=`printf "%010d" $CW`#连接ftpftp -ivn...2011-12-16 16:02:49 · 83 阅读 · 0 评论 -
Shell日期处理函数
#上个月getLastMonth() {month=`date +%m`year=`date +%Y`month=`expr $month - 1`if [ $month -lt 0 ]thenmonth=12year=`expr $year - 1`fi month=`printf "%02d" $month` #补零echo $year$m...2015-07-02 12:14:34 · 241 阅读 · 0 评论 -
System.in.read()在Linux无法阻塞的问题
最近在使用启动一个Java进程,然后提供服务:其中程序的启动入口为log.info("开始启动OI-SOA进程...");ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( new String[] { "springapplicationContext-spring.xml" ...原创 2015-12-24 17:56:24 · 1022 阅读 · 0 评论