Ingo Blechschmidt skribis 2005-05-19 21:07 (+0200): > I read this as that uniq should behave like Unix's uniq(1), i.e. > removing only successive duplicates, e.g.: > uniq [3,3,3,4,3] => [3,4,3] # what I meant > uniq [3,3,3,4,3] => [3,4] # what you meant
Which leads to lots of |sort|uniq, or just sort -u. Are there many practical uses for removing successive duplicates? I personally have never used tr///'s capability of removing successively duplicate characters, except in golf. Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.html