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*

5
  • 1
    Which shell are you using? This is facile to achieve in zsh. Commented Dec 9, 2018 at 0:05
  • bash, whatever is standard on mac. Commented Dec 9, 2018 at 2:28
  • While technically OSX is based on Linux, there's an active Mac-specific SE site and this question is much more appropriate there. You'd get better answers as well. Commented Dec 9, 2018 at 3:24
  • 2
    @Bagalaw I disagree. This is a purely bash question, and IMO appropriate for U/L. Commented Dec 9, 2018 at 3:40
  • @eugenekgn There are numerous similar questions on this site. Have a look and see if you can work it out from them. Commented Dec 9, 2018 at 3:41