• shell handle


    #!/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

  • 相关阅读:
    LeetCode-46. Permutations
    LeetCode-40. Combination Sum II
    LeetCode-39. Combination Sum
    剑指offer-数组中的逆序对
    LeetCode-295. Find Median from Data Stream
    LeetCode-268. Missing Number
    LeetCode-515. Find Largest Value in Each Tree Row
    GIS技术在采矿与勘探中的应用
    JavaScript 跨域总结与解决办法giserdqy.com
    JavaScript 跨域总结与解决办法giserdqy.com
  • 原文地址:https://www.cnblogs.com/ruiy/p/16383241.html
Copyright © 2020-2023  润新知