下面两个shell脚本是shell调用datastage作业时查找缺少作业和错误作业名的脚本
脚本一:
[root@dataStage findjob]# more errcfgjob.sh #!/bin/bash ####################################################################### #purpose:find the error configuration job in the file dsjob_list2.conf #version:1 #date:2014-05-29 ######################################################################## for i in `cat dsjob_list2.conf |cut -d: -f1` do if cat alljob.xml|grep $i>/dev/null then : else echo $i fi done [root@dataStage findjob]#
脚本二:
[root@dataStage findjob]# more lackjob.sh 
#!/bin/bash
#####################################################################
#purpose:this shell is order to find the job in the project but not writen to the configration
#author:wenchao
#version:1
#time:2014-05-29
#####################################################################
for i in `awk -F ‘<id_>|</id_>‘ ‘{print $2}‘ alljob.xml |sed  ‘/^$/d‘`
	do 
		if cat dsjob_list2.conf|grep $i>/dev/null
	 		 then  :
		else 
			echo $i
		fi
	done
[root@dataStage findjob]#datastage 作业查找脚本,布布扣,bubuko.com
原文:http://fuwenchao.blog.51cto.com/6008712/1531095