Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • 1
    The script runs well here. Are there any CR's in your files? Commented Dec 6, 2019 at 0:06
  • or more generally any other invisible characters? Can you add the output of head -1 logfile.txt | od -c to the question? Commented Dec 6, 2019 at 4:49
  • After modifying one line to RAW_MILLI_SECONDS="$(<<< "$ONE_LINE" tr -s ' ' ' ' | cut -d' ' -f11)" it works well for me in Lubuntu 18.04.x LTS. Are there invisible characters in the file, that are not transmitted via your snippet in the edited question? MacOS is not linux, and some command may act in a different way from what we (linux users) expect. Commented Dec 6, 2019 at 6:11
  • 1
    The script posted has 15 lines but the error is being reported in the line number 26. So, either try the script as posted to find the error or post the full script you are using. Commented Dec 6, 2019 at 15:01
  • @Isaac edited output using script above. Commented Dec 6, 2019 at 15:53