Suppose there is a column of numeric values like following:
1 2 3 3 3 4 4 4 5 6
I want the output:
That is, only the repeated lines. Are there any command line tools to find this out in Linux? (NB: The values are numerically sorted).
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community