On 10 сент. 2014 г., at 22:33, Felix Chern <idry...@gmail.com> wrote:

> Use ‘tr -s’ to stripe out tabs?
> 
>  $ echo -e "a\t\t\tb"
> a                     b
> 
>  $ echo -e "a\t\t\tb" | tr -s "\t"
> a     b
> 

There can be tabs in the input, I want to keep input lines without any 
modification.

Actually it is rather standard task: process lines one by one without inserting 
extra characters.  There should be standard solution for it IMO.

Reply via email to