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*

9
  • I tried your code and it is not entering in the loop. Output is DEBUG Starting loop DEBUG3 tmpTotalErrors=0 Commented Nov 25, 2016 at 16:17
  • Changed with same result. My line now is while read -r -d '' file Could you update your answer? Commented Nov 25, 2016 at 16:27
  • @OscarFoley Since your bash support lastpipe, can you try to use set +m; shopt -s lastpipe in your script as it is (without rewriting anything else)? Commented Nov 25, 2016 at 16:27
  • Never seen that shopt... how can I use it? Thanks a lot for the help btw... Commented Nov 25, 2016 at 16:29
  • @OscarFoley See the linked wiki which explains it. You just need to add the two lines I mentioned in my previous comment into your script? Commented Nov 25, 2016 at 16:30