The expand command converts tabs in the file to spaces. Let's use the same example we used in the section "Replacing Blank Lines and Tabs'':
By piping the contents of the file through the expand command, you have converted the tabs to spaces. The output of cat -T shows that the tabs have gone away. This is a convenient way of tidying up a file that contains white space that is a random mixture of tabs and spaces.
Was this article helpful?