From 00cb4b62834738cd7bbd91a92b89c7e0ffe6a405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Babi=C4=8D?= Date: Sun, 26 Apr 2015 23:47:43 +0200 Subject: [PATCH] useless cat fix --- robocode-svm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/robocode-svm b/robocode-svm index 8d17707..7f8c31b 100755 --- a/robocode-svm +++ b/robocode-svm @@ -37,8 +37,8 @@ show_help() { # Run the battle wit the specified parameters # @param gui --gui|--no-gui -# @param x the position of the roaming robot on x-axis -# @param y the position of the roaming robot on y-axis +# @param x the position of the roaming robot on x-axis +# @param y the position of the roaming robot on y-axis # @param alpha the orientation of the gun of the roaming robot (OPTIONAL) run_battle() { # The x and y parameters are required integers @@ -76,7 +76,7 @@ run_battle() { # Run battle without GUI, following the settings file, save the results into file robocode "$gui" -battle "$(pwd)/$settings" -results "$(pwd)/$results" > /dev/null # Obtain the winner from the results file - cat "$results" | tail -2 | awk 'NR==1F {print $2}' + tail -2 < "$results" | awk 'NR==1F {print $2}' } # Generate the missing amount of data from running battles