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*

2
  • Please note that ${var} is not the same as "$var". Verify with this: var=" a b c "; echo "$var"; echo ${var} -- you'll see the whitespace removed in the 2nd echo. Commented Feb 5, 2014 at 21:35
  • You try to split a line into an awk array, and then try to access that array under the same name as shell variable! That won't work. Commented Apr 8, 2019 at 22:05