Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abc 4 bcf 3 rrr 3 ggg 2
- #iterate on the files stored to find target
- #round1.txt to round10.txt
- for matchfile in round*.txt; #1
- do
- declare file_content=$( cat "${matchfile}" ) #2
- for i in ${file_content[@]}; #3
- do
- #echo $i;
- args+=("$i")
- #break;
- done
- #declare -p args
- #echo ${#args[@]}
- done
- for ((jj=0;jj<${#args[@]};jj++));
- do
- if [ $((jj % 4)) -eq 0 -o $((jj)) -eq 0 ];
- then
- compareAndRecord ${args[jj]} ${args[jj+1]} ${args[jj+2]} ${args[jj+3]}
- fi
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement