diff options
Diffstat (limited to 'utils/gentranstests.sh')
| -rwxr-xr-x | utils/gentranstests.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/gentranstests.sh b/utils/gentranstests.sh index 62ebbda..a257a0a 100755 --- a/utils/gentranstests.sh +++ b/utils/gentranstests.sh | |||
| @@ -8,9 +8,9 @@ i=100 | |||
| 8 | while read -r line; do | 8 | while read -r line; do |
| 9 | [ -z "$line" ] && continue | 9 | [ -z "$line" ] && continue |
| 10 | 10 | ||
| 11 | trans_piece="$(echo $line | awk '{print $1}' | tr -d 'rm')" | 11 | trans_piece="$(echo "$line" | awk '{print $1}' | tr -d 'rm')" |
| 12 | move1="$(echo $line | awk '{print $2}')" | 12 | move1="$(echo "$line" | awk '{print $2}')" |
| 13 | move2="$(echo $line | awk '{print $3}')" | 13 | move2="$(echo "$line" | awk '{print $3}')" |
| 14 | 14 | ||
| 15 | rotation="rotation $trans_piece" | 15 | rotation="rotation $trans_piece" |
| 16 | 16 | ||
| @@ -23,7 +23,7 @@ while read -r line; do | |||
| 23 | i=$((i+1)) | 23 | i=$((i+1)) |
| 24 | 24 | ||
| 25 | mirrored="mirrored $trans_piece" | 25 | mirrored="mirrored $trans_piece" |
| 26 | move2m="$(echo ${move2} | tr 'LR' 'RL')3" | 26 | move2m="$(echo "${move2}" | tr 'LR' 'RL')3" |
| 27 | 27 | ||
| 28 | file1="$(ls cubes | grep "move_.*_${move1}.txt")" | 28 | file1="$(ls cubes | grep "move_.*_${move1}.txt")" |
| 29 | file2="$(ls cubes | grep "move_.*_${move2m}.txt")" | 29 | file2="$(ls cubes | grep "move_.*_${move2m}.txt")" |
