flip(1)
– reverse data
#48
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
rev(1)
should reverse lines, arbitrarily-separated values (à la GNUtac(1)
), or words, depending on the flags specified. These lines will be supplied from the standard input.rev [-w] [-s separator]
This offloads functionality from #22.
Turns out it needs a different name since
rev(1)
is a GNU utility.I think reverse(1) would be fine.
Arbitrary delimiter(s) (e.g.
out hello world | reverse -d e -d o
would printhellow odlr
) or-w
for whitespace sounds good to me, if that"s what you mean by the usage string.My though was that
-w
is for words and-d
was for arbitrary delimiters, defaulting to newlines.That seems equivalent functionally to what I figured.
It is, isn’t it! Sounds good to me.
Now we just need a better name.
@trinity what do you think of
flip(1)
?I like it.
`rev(1)` – reverse datato `flip(1)` – reverse data