随笔分类 -  SHELL

摘要:csh与bash比较:一、csh的while循环控制结构及if then:#!/bin/csh -fwhile ($#argv >= 1)if ("$1" == "-s") thenshiftif ($#argv >= 1) thenset source = $1shiftendifelse if ... 阅读全文
posted @ 2014-10-23 19:44 johnny_HITWH 阅读(2301) 评论(0) 推荐(0)
摘要:llinux shell:http://www.92csz.com/study/linux/awk:http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858470.htmlshell:http://zhizhuofl.blog.163.com/... 阅读全文
posted @ 2014-05-25 21:45 johnny_HITWH 阅读(132) 评论(0) 推荐(0)
摘要:shell中执行sh文件时需要开子进程,因此export的环境变量在子进程中,若想要sh中定义的脚本生效,使用source命令,并且可以被子进程继承。而子进程export的内容父进程获取不到 阅读全文
posted @ 2014-05-22 21:09 johnny_HITWH 阅读(201) 评论(0) 推荐(0)