We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
'Uniq' Command #2
'Uniq' Command #2
Sort by
recency
|
187 Discussions
|
Please Login in order to post a comment
uniq -c | tr -s '[:blank:]' | cut -c2-
tr -s ' ' ' ': This command normalizes all sequences of spaces into a single space.
uniq -c | cut -c7-
Two ways using uniq,tr, cut command
!/bin/bash
uniq -c | sed 's/^[ \t]*//'
uniq -c | cut -c 7-
don't echo the leading spaces