Sort by

recency

|

187 Discussions

|

  • + 0 comments

    uniq -c | tr -s '[:blank:]' | cut -c2-

    tr -s ' ' ' ': This command normalizes all sequences of spaces into a single space.

  • + 0 comments

    uniq -c | cut -c7-

  • + 0 comments

    Two ways using uniq,tr, cut command

    uniq -c | tr -s '[:space:]' | cut -d ' ' -f2-
    

    uniq -c | cut -c 7-

  • + 0 comments

    !/bin/bash

    uniq -c | sed 's/^[ \t]*//'

  • + 1 comment

    uniq -c | cut -c 7-

    don't echo the leading spaces