Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. abc 4 bcf 3 rrr 3 ggg 2
  2.  
  3. #iterate on the files stored to find target
  4. #round1.txt to round10.txt
  5. for matchfile in round*.txt; #1
  6. do
  7. declare file_content=$( cat "${matchfile}" ) #2
  8.  
  9. for i in ${file_content[@]}; #3
  10. do
  11. #echo $i;
  12. args+=("$i")
  13. #break;
  14. done
  15. #declare -p args
  16. #echo ${#args[@]}
  17. done
  18. for ((jj=0;jj<${#args[@]};jj++));
  19. do
  20. if [ $((jj % 4)) -eq 0 -o $((jj)) -eq 0 ];
  21. then
  22. compareAndRecord ${args[jj]} ${args[jj+1]} ${args[jj+2]} ${args[jj+3]}
  23. fi
  24. done
  25. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement