Hi,
thanks, however irrespective of any number of occurences of tab 'tr' will replace each occurences with single occurence(replacable) chars.
i.e input is
note : pls read {1\t} as 1 tab and {2\t} as 2 tabs
the statement cat abc | tr -s '\t' '#' replace any number of occurences on each line to just one. However I wanna retain the number of each occurences in this case number of tabs, so that after processing I can put it back in the respective places.