Linux fmt Command: Format Text with Line Width
Linuxcommands
The fmt command in Linux (format) formats text to a specific width. It can remove spaces or add spaces according to the desired width. The default is 75 characters.
The frequently used option is:
-w number: Sets the desired width for the text.
Example:
$ fmt –w 50 LEIAME.TXT
Learn much more about Linux in our online course. You can enroll here. If you already have an account, or want to create one, just log in or create your user here.
Did you like it? Share
That was just one piece. The course teaches the whole path — from your first command to exam day.