I tried reading the manual for unexpand as well as read the answer here but I do not understand how unexpand works with a tablist as an argument.
When I try the following (2 spaces and 3 spaces expecting them to converted to tabstops)
$ unexpand -t 2,3,4
12**345***678
I get
12\t\t345***678
* represents a space (I used * for clarity). I'm not sure why there are two tabstops after 2 and no tabstops after 5 even though there are 3 blanks.
I also tried the following (expecting blanks in the 2nd and 5th columns to be converted to tabstops)
$ unexpand -t 2,5
1*23*4567
I get
1*23*4567
I also tried
$ unexpand -t 2,5
1**2*****345
I get
1\t*2*****345
I can't understand how the program interprets the tablist argument when there is more than one arg.