Commit 303f7c6b authored by daidekun's avatar daidekun

update tar command

parent 5cab11e4
...@@ -5,10 +5,16 @@ package_path="/home/quant_group" ...@@ -5,10 +5,16 @@ package_path="/home/quant_group"
echo "cd ${package_path}" echo "cd ${package_path}"
cd ${package_path} cd ${package_path}
for entry in ./*.tgz for entry in ./*tgz
do do
echo "tar zxf ${$entry} -C ${package_path}" with_ext=$(basename "$entry")
tar zxf ${package_path}/$entry -C ${package_path} fname="${with_ext%.*}"
echo $with_ext
echo $fname
echo "tar zxf ${package_path}/$with_ext ${package_path}/$fname"
tar zxf ${package_path}/$with_ext ${package_path}/$fname
done done
echo "sed sed xyqb.com to q-gp.com" echo "sed sed xyqb.com to q-gp.com"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment