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*

4
  • is this for a shell other than BASH? compress_spaces.sh: line 3: unexpected EOF while looking for matching )'` compress_spaces.sh: line 40: syntax error: unexpected end of file Commented Feb 5, 2021 at 17:35
  • updated it to hopefully fix it! Commented Feb 6, 2021 at 2:47
  • how do you pass a file name to this, @brad-parks? Commented Feb 10, 2021 at 15:22
  • @RobbieTheK - you'd have to do something like, cat FILENAME | compress_spaces.sh Commented Feb 10, 2021 at 18:00