On Mon, Apr 18, 2016 at 07:11:46PM -0400, Christian Heckendorf wrote: > Hi, > After reading the man page description of tr -s, I couldn't understand > what it meant to "squeeze" characters. It could be that 'squeeze' is a > mnemonic for '-s' but it's not helpful as a technical explanation. > > -- > Christian
I prefer "removes consecutive occurrences" over "removes consecutive repetitions". "ABCABCABC" is a consecutive repetition of the characters "ABC". > > > Index: tr.1 > =================================================================== > RCS file: /cvs/src/usr.bin/tr/tr.1,v > retrieving revision 1.25 > diff -u -p -u -r1.25 tr.1 > --- tr.1 28 Feb 2015 21:51:57 -0000 1.25 > +++ tr.1 18 Apr 2016 22:53:28 -0000 > @@ -82,12 +82,12 @@ option causes characters to be deleted f > .It Fl s > The > .Fl s > -option squeezes multiple occurrences of the characters listed in the last > +option removes consecutive repetitions of characters listed in the last > operand (either > .Ar string1 > or > .Ar string2 ) > -in the input into a single instance of the character. > +from the input. > This occurs after all deletion and translation is completed. > .El > .Pp > -- Andreas Kusalananda Kähäri, Bioinformatics Developer (NBIS) Uppsala University, Uppsala, Sweden NBIS: http://nbis.se OpenPGP: url=https://db.tt/2zaB1E7y; id=46082BDF ------------------------------------------------------------------------
signature.asc
Description: PGP signature
