Home > Articles

  • Print
  • + Share This
This chapter is from the book

expand

The expand command converts tabs into spaces. Use the -t option to specify how many spaces to insert in place of each tab.

Example:

[student@localhost ~]$ cat -T sample.txt
Example:^IOne
Test:^I^ITwo
[student@localhost ~]$ expand -t 4 sample.txt
Example:    One
Test:       Two
[student@localhost ~]$ expand -t 8 sample.txt
Example:      One
Test:         Two
  • + Share This
  • 🔖 Save To Your Account