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
  • downvoters dare to explain why? : ) Commented Apr 15, 2020 at 2:01
  • too complicated compared to the other answers ;) ( I did not downvote ) Commented Apr 21, 2022 at 6:26
  • 1
    Just because you can put multiple commands in a single line does not automatically mean that you should. See unix.stackexchange.com/q/544428/100397 Commented Jun 24, 2022 at 8:13
  • @roaima I agree with your comment in general, but I think this is exactly one of those situations that I would use a one-liner. Commented Jun 27, 2022 at 19:18
  • Sure, no worries Commented Jun 27, 2022 at 19:38