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.

3
  • thanks for answer, I wanted to only use cut though. I found an answer, if you are interested: unix.stackexchange.com/a/693283/314643 Commented Mar 7, 2022 at 13:50
  • 1
    "I wanted to only use cut only" and posts an answer that uses (a useless use of) cat, 2x rev and cut. I bet, tr + cut performs better. Commented Mar 7, 2022 at 13:55
  • @Allexj You can't use only cut to remove a variable amount of spaces. Commented Mar 7, 2022 at 14:51