Команда fmt: опции, ключи и примеры использования
fmt
Reformat a text file by joining its paragraphs and limiting the line width to given number of characters (75 by default).
- Reformat a file:
fmt {{path/to/file}}
- Reformat a file producing output lines of (at most)
n
characters:
fmt -w {{n}} {{path/to/file}}
- Reformat a file without joining lines shorter than the given width together:
fmt -s {{path/to/file}}
- Reformat a file with uniform spacing (1 space between words and 2 spaces between paragraphs):
fmt -u {{path/to/file}}
Также может быть вам интересно:
- 25 января вышло новое крупное обновление Age of Empires II DE: Lords of the West
- И снова sudo, и снова "решето"
- Только одна из десяти компаний ожидает, что все работники вернутся в офисы
- Google Play временно забанил видео-плеер за поддержку неправильных субтитров
- Google прекращает поддержку сторонних приложений в API Chrome-like