Linux.Shell根据指定目录中文件替换jar、war包中对应的文件class、html、css
#!/bin/bash
replace_space_dir="replace_space";
function read_dir(){
for file in `ls $2`
do
if [ -d $2"/"$file ] ;then
read_dir $2"/"$file
else
#echo $1"/"$file
fileInJavaFilePath=`jar tf $1 | grep $file | sed ":label;N;s/
/ /;b label"`.
/ /;b label"`.




