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
  • Thank you, this worked well for me as a pure bash solution. Commented Mar 17, 2016 at 17:54
  • btw, I assume you meant to say * from the right (instead of %) Commented Mar 17, 2016 at 17:55
  • @Bajal: Actually, no. * is a wildcard that matches anything. See Parameter Expansion in man bash. Commented Mar 17, 2016 at 17:56
  • Oh ok, I misunderstood. It is clear to me now. Thanks again. Commented Mar 17, 2016 at 18:40