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*

8
  • 2
    Possible duplicate of How to escape quotes in shell? Commented Sep 13, 2019 at 19:18
  • 2
    Your loop only ever iterates once. Commented Sep 13, 2019 at 19:19
  • @jordanm I don't think that applies to awk Commented Sep 13, 2019 at 19:19
  • 2
    @Jesse_b his quoting issue is shell quoting, doesn't really have anything to do with awk. He needs to escape nested single quotes. Commented Sep 13, 2019 at 19:20
  • 1
    Related: How to escape a single quote inside awk Commented Sep 13, 2019 at 19:22