Echo TAB is not working
I'm using TAB for display a block of code with commnad:
echo -e "192.168.1.103 \t TUNG \t 30:65:ec:1f:77:b7"
echo -e "192.168.1.107 \t LCT3VCLJN2K3MCZ \t 00:1f:c6:53:a5:36"but it display not correctly in terminal:
But I want it to be display bellow:
I'm using Ubuntu 14.04, please help me !
Thanks in advance !
21 Answer
Use the column command:
$ { echo 192.168.1.103 TUNG 30:65:ec:1f:77:b7; echo 192.168.1.107 LCT3VCLJN2K3MCZ 00:1f:c6:53:a5:36;} | column -t
192.168.1.103 TUNG 30:65:ec:1f:77:b7
192.168.1.107 LCT3VCLJN2K3MCZ 00:1f:c6:53:a5:36 3