Skip to content

Commit

Permalink
I want the last line, not the first (test relict)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgol committed Mar 22, 2015
1 parent c0a8f62 commit 1db77c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/getstation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ then
lastLogName=$(basename "${lastLogFile}")
echo " Log: .../${lastLogName}"

logLine=$(grep "FindBestIsland:" "${lastLogFile}" | head -1)
logLine=$(grep "FindBestIsland:" "${lastLogFile}" | tail -1)
if [[ ! -z "${logLine}" ]]
then
echo "Line: ${logLine}"
Expand Down

0 comments on commit 1db77c8

Please sign in to comment.