www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

#!/bin/bash

#qinrui

 

set -e

commitId=''

repoPath=''

x1=''

 

if [ -f changes15.txt ];then

        #git log |grep -A 2 9acd7d8537191caaf801a59428be5fbf0e110659| grep "Author"

 

        #for i in `cat changes15.txt|grep "changed from" | awk  -F "changed from" '{print $1}'`;do x1=$i;echo $x1;done

        #for i in `cat changes15.txt|grep "changed from" | awk  -F "changed from" '{print $1$6}'`;do echo $i;echo $;cd $i && cd - &&echo 'OK-ruiy';done

 

        #for j in `cat changes15.txt|grep "changed from" | awk  -F "to" '{print $2}'`;do echo $j;for i in `cat changes15.txt|grep "changed from" | awk  -F "changed from" '{print $1}'`;do echo $i;cd $i && cd -;done;done

 

 

 

        #for j in `cat changes15.txt|grep "changed from" | awk  -F "to" '{print $2}'`;do commitId=$j;echo $commitId;for i in `cat changes15.txt|grep "changed from" | awk  -F "changed from" '{print $1}'`;do cd $i ; git log |grep -A 2 $commitId ; cd - > /dev/null;done;done

 

 

 

        for j in `cat changes15.txt|grep "changed from" | awk  -F "to" '{print $2}'`;do commitId=$j;for i in `cat changes15.txt|grep "changed from" | awk  -F "changed from" '{print $1}'`;do repoPath=$i;cd $repoPath && git log | grep -A 2 $commitId && echo $repoPath ; cd - > /dev/null ;done;done

 

 

 

 

        #for i in `cat changes15.txt|grep "changed from" | awk  -F "changed from" '{print $1}'`;do echo $i;cd $i && cd -;done

        #echo "Ok"

else

        echo "no changes15.txt"

fi

posted on 2022-06-16 19:49  秦瑞It行程实录  阅读(39)  评论(0编辑  收藏  举报
www.cnblogs.com/ruiyqinrui