17.6 Expand Tabs to Spaces
20200423 The expand command is used to expands tabs into spaces retaining the alignment.
$ cat mytabs.txt A simple file with tabs to align columns across multiple rows $ cat -T mytabs.txt A simple^Ifile^Iwith tabs to align^Icolumns^Iacross multiple^Irows^I $ expand mytabs.txt A simple file with tabs to align columns across multiple rows $ expand mytabs.txt > myspaces.txt $ cat -T myspaces.txt A simple file with tabs to align columns across multiple rows
See https://www.putorius.net/expand-convert-tabs-to-spaces.html for more examples.
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0