Repository navigation
Replies: 1 comment 5 replies
|
Added the following new commands to 1.42.0:
Added the following adjacency related commands to 1.42.0:
Will implement Keep only unique lines in the future. And counting commands in case insensitive mode are missing, not sure that there is a demand for it (let me know if there is). |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
Along with the "Remove duplicated lines" feature, it would be useful to have basic uniq functionalities, it's a tool to work on repeated consecutive lines. Essentials are:
it comes handy, in conjunction with sort, to examine and manipulate text files.
just in case you're interested, here's a few examples working with the following
input.txtfile:notice how
uniq input.txtwould keep the two, non-adjacent, "Cat" lines:uniq -d input.txt, only shows duplicate, again "Cat" is shown twice because they're not adjacent:finally
uniq -c input.txtcount the number of time each line appears:Voilà. People generally use sort and uniq at the command line, but it would be nice to be able to do it directly from vscode.
All reactions