I like what the uniq
command does, but it looks for duplicates on different lines. I would like to find duplicates even within the same line. what command can do that?
Consider this line this this line
, and that I might want to know how many times "this" appears in the same line.
Is there a command that can do this?