I have a chain of piped bash commands
grep A01929 test_FTF89MNR.txt |
grep status |
tr "=" " " |
tr "," " " |
cut -d" " -f 1 -f 2 -f 11 -f 14 -f 17
which produces a whole bunch of output that looks like this
...
2016-02-25 09:15:01.41 2742 1535 1796
...
To make import into Excel easy, I want to replace all of the white space between columns with TABS except the first one which separates the data and time. So the target output would be
...
2016-02-25 09:15:01.41\t2742\t1535\t1796
...
Is there an easy command line fu that I can tack on to my chain of pipes to accomplish that? tr
didn't seem to have something that allowed it to do ranges. I'm on OS X.