Forrest logo
back to the expand tool

expand:tldr:be922

expand: Do not convert tabs after non blanks.
$ expand -i ${filename}
try on your machine

The "expand" command is used to replace tabs in a text file with spaces. The "-i" option tells the command to edit the file in place, which means the changes will be made directly to the original file rather than creating a new file.

The "${filename}" is a placeholder for the actual file name. You need to replace it with the name of the file you want to modify. For example, if you have a file called "example.txt" and you want to replace the tabs with spaces in that file, the command will be:

expand -i example.txt

After executing this command, the tabs in the "example.txt" file will be replaced with spaces.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the expand tool